Skip to content

Commit bf1cdd1

Browse files
committed
upgrade gradle
1 parent c7a76df commit bf1cdd1

File tree

15 files changed

+46
-27
lines changed

15 files changed

+46
-27
lines changed

abi/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
plugins {
2+
id 'java-library'
3+
}
14

25
description 'Ethereum Application Binary Interface (ABI) for working with smart contracts'
36

47
dependencies {
5-
compile project(':utils')
8+
api project(':utils')
69
}

besu/build.gradle

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
1+
plugins {
2+
id 'java-library'
3+
}
24
description 'Besu JSON-RPC API'
35

46
dependencies {
5-
compile project(':eea')
6-
testCompile project(path: ':core', configuration: 'testArtifacts')
7+
api project(':eea')
8+
testImplementation project(path: ':core', configuration: 'testArtifacts')
79
}

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ allprojects {
6969
}
7070

7171
dependencies {
72-
testCompile "org.junit.jupiter:junit-jupiter:$junitVersion"
73-
testCompile "org.mockito:mockito-junit-jupiter:$mockitoJunitVersion"
72+
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
73+
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoJunitVersion"
7474

7575
configurations.all {
7676
resolutionStrategy {

codegen/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
description 'web3j project code generators'
22

33
dependencies {
4-
compile project(':core'),
4+
implementation project(':core'),
55
"com.squareup:kotlinpoet:$kotlinPoetVersion",
66
"com.squareup:javapoet:$javaPoetVersion",
77
"info.picocli:picocli:$picocliVersion"
8-
testCompile project(':core').sourceSets.test.output,
8+
testImplementation project(':core').sourceSets.test.output,
99
"ch.qos.logback:logback-core:$logbackVersion",
1010
"ch.qos.logback:logback-classic:$logbackVersion"
1111
implementation("org.junit.platform:junit-platform-launcher:$junitPlatformLauncherVersion")

contracts/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
description 'web3j support for Ethereum Improvement Proposals (EIP\'s)'
33

44
dependencies {
5-
compile project(':core')
6-
testCompile project(path: ':core', configuration: 'testArtifacts')
5+
implementation project(':core')
6+
testImplementation project(path: ':core', configuration: 'testArtifacts')
77
}

core/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import java.text.SimpleDateFormat
22

3-
apply plugin: 'org.ajoberstar.git-publish'
4-
3+
plugins {
4+
id 'java-library'
5+
id 'org.ajoberstar.git-publish'
6+
}
57

68
description 'web3j is a lightweight Java library for integration with Ethereum clients'
79

810
dependencies {
9-
compile project(':abi'),
11+
api project(':abi'),
1012
project(':crypto'),
1113
project(':tuples'),
1214
"com.github.jnr:jnr-unixsocket:$jnr_unixsocketVersion",
@@ -16,7 +18,7 @@ dependencies {
1618
"org.java-websocket:Java-WebSocket:$javaWebSocketVersion",
1719
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
1820
"org.slf4j:slf4j-api:$slf4jVersion"
19-
testCompile project(path: ':crypto', configuration: 'testArtifacts'),
21+
testImplementation project(path: ':crypto', configuration: 'testArtifacts'),
2022
"nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion",
2123
"ch.qos.logback:logback-classic:$logbackVersion"
2224
}

crypto/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
plugins {
2+
id 'java-library'
3+
}
14

25
description 'web3j Ethereum crypto library'
36

47
dependencies {
5-
compile project(':abi'),
8+
api project(':abi'),
69
project(':rlp'),
710
project(':utils'),
811
"org.slf4j:slf4j-api:$slf4jVersion",

eea/build.gradle

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
plugins {
2+
id 'java-library'
3+
}
14

25
description 'EEA JSON-RPC API'
36

47
dependencies {
5-
compile project(':core')
6-
testCompile project(path: ':core', configuration: 'testArtifacts')
8+
api project(':core')
9+
testImplementation project(path: ':core', configuration: 'testArtifacts')
710
}

geth/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
description 'Geth JSON-RPC API'
33

44
dependencies {
5-
compile project(':core')
6-
testCompile project(path: ':core', configuration: 'testArtifacts')
5+
implementation project(':core')
6+
testImplementation project(path: ':core', configuration: 'testArtifacts')
77
}

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-all.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists

hosted-providers/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
description 'web3j customisations for working with hosted web3 providers (Infura.io & Nodesmith.io)'
33

4-
dependencies { compile project(':core') }
4+
dependencies { implementation project(':core') }

integration-tests/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
description 'web3j integration tests'
22

33
dependencies {
4-
compile project(':core'),
4+
implementation project(':core'),
55
project(':besu'),
66
project(':parity'),
77
project(':geth'),
88
project(':codegen')
9-
testCompile "ch.qos.logback:logback-core:$logbackVersion",
9+
testImplementation "ch.qos.logback:logback-core:$logbackVersion",
1010
"ch.qos.logback:logback-classic:$logbackVersion",
1111
"com.carrotsearch:junit-benchmarks:$junitBenchmarkVersion",
1212
"org.web3j:web3j-unit:4.8.3"

parity/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description 'Parity JSON-RPC API'
33

44
dependencies {
5-
compile project(':core')
6-
testCompile project(path: ':core', configuration: 'testArtifacts'),
5+
implementation project(':core')
6+
testImplementation project(path: ':core', configuration: 'testArtifacts'),
77
"nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion"
88
}

rlp/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
plugins {
2+
id 'java-library'
3+
}
14

25
description 'Ethereum Recursive Length Prefix (RLP) encoding for serializing objects'
36

4-
dependencies { compile project(':utils') }
7+
dependencies { api project(':utils') }

utils/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
plugins {
2+
id 'java-library'
3+
}
14

25
description 'Minimal set of web3j utility classes'
36

4-
dependencies { compile "org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion" }
7+
dependencies { api "org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion" }

0 commit comments

Comments
 (0)