diff --git a/abi/build.gradle b/abi/build.gradle index 389035a78..25c4792ef 100644 --- a/abi/build.gradle +++ b/abi/build.gradle @@ -1,6 +1,9 @@ +plugins { + id 'java-library' +} description 'Ethereum Application Binary Interface (ABI) for working with smart contracts' dependencies { - compile project(':utils') + api project(':utils') } diff --git a/besu/build.gradle b/besu/build.gradle index 629540cf1..b4a5feded 100644 --- a/besu/build.gradle +++ b/besu/build.gradle @@ -1,7 +1,9 @@ - +plugins { + id 'java-library' +} description 'Besu JSON-RPC API' dependencies { - compile project(':eea') - testCompile project(path: ':core', configuration: 'testArtifacts') + api project(':eea') + testImplementation project(path: ':core', configuration: 'testArtifacts') } diff --git a/build.gradle b/build.gradle index df9cd5d36..4a1a9de3c 100644 --- a/build.gradle +++ b/build.gradle @@ -69,8 +69,8 @@ allprojects { } dependencies { - testCompile "org.junit.jupiter:junit-jupiter:$junitVersion" - testCompile "org.mockito:mockito-junit-jupiter:$mockitoJunitVersion" + testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion" + testImplementation "org.mockito:mockito-junit-jupiter:$mockitoJunitVersion" configurations.all { resolutionStrategy { diff --git a/codegen/build.gradle b/codegen/build.gradle index 002995e40..c3a7c207e 100644 --- a/codegen/build.gradle +++ b/codegen/build.gradle @@ -1,11 +1,11 @@ description 'web3j project code generators' dependencies { - compile project(':core'), + implementation project(':core'), "com.squareup:kotlinpoet:$kotlinPoetVersion", "com.squareup:javapoet:$javaPoetVersion", "info.picocli:picocli:$picocliVersion" - testCompile project(':core').sourceSets.test.output, + testImplementation project(':core').sourceSets.test.output, "ch.qos.logback:logback-core:$logbackVersion", "ch.qos.logback:logback-classic:$logbackVersion" implementation("org.junit.platform:junit-platform-launcher:$junitPlatformLauncherVersion") diff --git a/contracts/build.gradle b/contracts/build.gradle index 60fb704fd..6d5bc52b1 100644 --- a/contracts/build.gradle +++ b/contracts/build.gradle @@ -2,6 +2,6 @@ description 'web3j support for Ethereum Improvement Proposals (EIP\'s)' dependencies { - compile project(':core') - testCompile project(path: ':core', configuration: 'testArtifacts') + implementation project(':core') + testImplementation project(path: ':core', configuration: 'testArtifacts') } diff --git a/core/build.gradle b/core/build.gradle index 9fd11693c..a5ba44568 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -1,12 +1,14 @@ import java.text.SimpleDateFormat -apply plugin: 'org.ajoberstar.git-publish' - +plugins { + id 'java-library' + id 'org.ajoberstar.git-publish' +} description 'web3j is a lightweight Java library for integration with Ethereum clients' dependencies { - compile project(':abi'), + api project(':abi'), project(':crypto'), project(':tuples'), "com.github.jnr:jnr-unixsocket:$jnr_unixsocketVersion", @@ -16,7 +18,7 @@ dependencies { "org.java-websocket:Java-WebSocket:$javaWebSocketVersion", "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion", "org.slf4j:slf4j-api:$slf4jVersion" - testCompile project(path: ':crypto', configuration: 'testArtifacts'), + testImplementation project(path: ':crypto', configuration: 'testArtifacts'), "nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion", "ch.qos.logback:logback-classic:$logbackVersion" } diff --git a/crypto/build.gradle b/crypto/build.gradle index 143d157e5..e30912a62 100644 --- a/crypto/build.gradle +++ b/crypto/build.gradle @@ -1,8 +1,11 @@ +plugins { + id 'java-library' +} description 'web3j Ethereum crypto library' dependencies { - compile project(':abi'), + api project(':abi'), project(':rlp'), project(':utils'), "org.slf4j:slf4j-api:$slf4jVersion", diff --git a/eea/build.gradle b/eea/build.gradle index 5dc163cef..c91c53a19 100644 --- a/eea/build.gradle +++ b/eea/build.gradle @@ -1,7 +1,10 @@ +plugins { + id 'java-library' +} description 'EEA JSON-RPC API' dependencies { - compile project(':core') - testCompile project(path: ':core', configuration: 'testArtifacts') + api project(':core') + testImplementation project(path: ':core', configuration: 'testArtifacts') } diff --git a/geth/build.gradle b/geth/build.gradle index de42f5a89..b0860179e 100644 --- a/geth/build.gradle +++ b/geth/build.gradle @@ -2,6 +2,6 @@ description 'Geth JSON-RPC API' dependencies { - compile project(':core') - testCompile project(path: ':core', configuration: 'testArtifacts') + implementation project(':core') + testImplementation project(path: ':core', configuration: 'testArtifacts') } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1ed0531d7..0449293b4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStorePath=wrapper/dists diff --git a/hosted-providers/build.gradle b/hosted-providers/build.gradle index 365859a7c..a217cd7fe 100644 --- a/hosted-providers/build.gradle +++ b/hosted-providers/build.gradle @@ -1,4 +1,4 @@ description 'web3j customisations for working with hosted web3 providers (Infura.io & Nodesmith.io)' -dependencies { compile project(':core') } +dependencies { implementation project(':core') } diff --git a/integration-tests/build.gradle b/integration-tests/build.gradle index 5b02d2699..7828a163a 100644 --- a/integration-tests/build.gradle +++ b/integration-tests/build.gradle @@ -1,12 +1,12 @@ description 'web3j integration tests' dependencies { - compile project(':core'), + implementation project(':core'), project(':besu'), project(':parity'), project(':geth'), project(':codegen') - testCompile "ch.qos.logback:logback-core:$logbackVersion", + testImplementation "ch.qos.logback:logback-core:$logbackVersion", "ch.qos.logback:logback-classic:$logbackVersion", "com.carrotsearch:junit-benchmarks:$junitBenchmarkVersion", "org.web3j:web3j-unit:4.8.3" diff --git a/parity/build.gradle b/parity/build.gradle index 25bda4f33..e34bffbf0 100644 --- a/parity/build.gradle +++ b/parity/build.gradle @@ -2,7 +2,7 @@ description 'Parity JSON-RPC API' dependencies { - compile project(':core') - testCompile project(path: ':core', configuration: 'testArtifacts'), + implementation project(':core') + testImplementation project(path: ':core', configuration: 'testArtifacts'), "nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion" } diff --git a/rlp/build.gradle b/rlp/build.gradle index 356980e95..4b46b24e7 100644 --- a/rlp/build.gradle +++ b/rlp/build.gradle @@ -1,4 +1,7 @@ +plugins { + id 'java-library' +} description 'Ethereum Recursive Length Prefix (RLP) encoding for serializing objects' -dependencies { compile project(':utils') } +dependencies { api project(':utils') } diff --git a/utils/build.gradle b/utils/build.gradle index f2546d010..6b6d8aa05 100644 --- a/utils/build.gradle +++ b/utils/build.gradle @@ -1,4 +1,7 @@ +plugins { + id 'java-library' +} description 'Minimal set of web3j utility classes' -dependencies { compile "org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion" } +dependencies { api "org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion" }