Skip to content

Commit

Permalink
upgrade gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
gtebrean committed Apr 16, 2024
1 parent c7a76df commit bf1cdd1
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 27 deletions.
5 changes: 4 additions & 1 deletion 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')
}
8 changes: 5 additions & 3 deletions 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')
}
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions 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")
Expand Down
4 changes: 2 additions & 2 deletions contracts/build.gradle
Expand Up @@ -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')
}
10 changes: 6 additions & 4 deletions 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",
Expand All @@ -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"
}
Expand Down
5 changes: 4 additions & 1 deletion 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",
Expand Down
7 changes: 5 additions & 2 deletions 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')
}
4 changes: 2 additions & 2 deletions geth/build.gradle
Expand Up @@ -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')
}
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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') }
4 changes: 2 additions & 2 deletions 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"
Expand Down
4 changes: 2 additions & 2 deletions parity/build.gradle
Expand Up @@ -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"
}
5 changes: 4 additions & 1 deletion 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') }
5 changes: 4 additions & 1 deletion 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" }

0 comments on commit bf1cdd1

Please sign in to comment.