Remove JCenter as a Gradle package repository (#589)

JCenter is deprecated, can no longer be published to, and is scheduled for removal. It is now causing build failures. Replace with Maven Central.

Also remove mavenLocal() as this is not recommended practice:

- https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:case-for-maven-local

Note that Jitpack still needs to be included as a package repository for Java chaincode since it has dependencies on an old version of com.github.everit-org.json-schema:org.everit.json.schema that is only published there.

Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
This commit is contained in:
Mark S. Lewis 2022-01-26 21:29:09 +00:00 committed by GitHub
parent 77431f5b39
commit 0f877fad4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 7 additions and 31 deletions

View file

@ -18,9 +18,8 @@ ext {
} }
repositories { repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here. // You can declare any Maven/Ivy/file repository here.
jcenter() mavenCentral()
} }
dependencies { dependencies {

View file

@ -24,10 +24,7 @@ dependencies {
} }
repositories { repositories {
maven { mavenCentral()
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
}
jcenter()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
} }

View file

@ -19,10 +19,7 @@ dependencies {
} }
repositories { repositories {
maven { mavenCentral()
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
}
jcenter()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
} }

View file

@ -18,9 +18,8 @@ ext {
} }
repositories { repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here. // You can declare any Maven/Ivy/file repository here.
jcenter() mavenCentral()
} }
dependencies { dependencies {

View file

@ -24,10 +24,7 @@ dependencies {
} }
repositories { repositories {
maven { mavenCentral()
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
}
jcenter()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
} }

View file

@ -27,10 +27,7 @@ dependencies {
} }
repositories { repositories {
maven { mavenCentral()
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
}
jcenter()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
} }

View file

@ -14,11 +14,7 @@ version '1.0-SNAPSHOT'
sourceCompatibility = 1.8 sourceCompatibility = 1.8
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven {
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
}
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
} }

View file

@ -22,10 +22,7 @@ dependencies {
} }
repositories { repositories {
maven { mavenCentral()
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
}
jcenter()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'
} }

View file

@ -7,7 +7,6 @@ version '0.0.1'
sourceCompatibility = 1.8 sourceCompatibility = 1.8
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'

View file

@ -12,7 +12,6 @@ version '0.0.1'
sourceCompatibility = 1.8 sourceCompatibility = 1.8
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'

View file

@ -12,7 +12,6 @@ version '0.0.1'
sourceCompatibility = 1.8 sourceCompatibility = 1.8
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven { maven {
url 'https://jitpack.io' url 'https://jitpack.io'