Skip to content

Commit a70a862

Browse files
authored
Merge pull request #2166 from LFDT-web3j/upgrade_java_21
Upgrade java 21 and besu 25.2.1
2 parents ef3dad8 + 1e9b7b9 commit a70a862

File tree

20 files changed

+39
-34
lines changed

20 files changed

+39
-34
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
registry.password: ${{ secrets.REGISTRY_PASSWORD }}
1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Set up JDK 17
18+
- name: Set up JDK 21
1919
uses: actions/setup-java@v4
2020
with:
2121
distribution: 'zulu'
22-
java-version: 17
22+
java-version: 21
2323
- name: Cache Gradle packages
2424
uses: actions/cache@v4
2525
with:
@@ -34,11 +34,11 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v4
37-
- name: Set up JDK 17
37+
- name: Set up JDK 21
3838
uses: actions/setup-java@v4
3939
with:
4040
distribution: 'zulu'
41-
java-version: 17
41+
java-version: 21
4242
- name: Cache Gradle packages
4343
uses: actions/cache@v4
4444
with:

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
3333

34-
- name: Set up JDK 17
34+
- name: Set up JDK 21
3535
uses: actions/setup-java@v4
3636
with:
3737
distribution: 'zulu'
38-
java-version: 17
38+
java-version: 21
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL

.github/workflows/publish-snapshot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
steps:
2020
- uses: actions/checkout@v4
21-
- name: Set up JDK 17
21+
- name: Set up JDK 21
2222
uses: actions/setup-java@v4
2323
with:
2424
distribution: 'zulu'
25-
java-version: 17
25+
java-version: 21
2626
- name: Cache Gradle packages
2727
uses: actions/cache@v4
2828
with:

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
- name: Build Workflow Dispatch
1818
uses: convictional/[email protected]
1919
with:
20-
owner: hyperledger-web3j
20+
owner: LFDT-web3j
2121
repo: web3j
2222
github_token: ${{ secrets.GITHUB_TOKEN }}
2323
workflow_file_name: build.yml
2424
wait_interval: 10
2525
propagate_failure: true
2626
trigger_workflow: true
2727
wait_workflow: true
28-
- name: Set up JDK 17
28+
- name: Set up JDK 21
2929
uses: actions/setup-java@v4
3030
with:
3131
distribution: 'zulu'
32-
java-version: 17
32+
java-version: 21
3333
- name: Cache Gradle packages
3434
uses: actions/cache@v4
3535
with:

CHANGELOG.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
# [4.13.1]() (2025-03-05)
6+
# [4.14.0]() (Upcoming)
77

88
### Bug Fixes
99

10-
*
10+
* fix: ENS CCIP Read improvements [#2164](https://github.com/LFDT-web3j/web3j/pull/2164)
11+
12+
1113
### Features
1214

1315
* bump snapshot version to 4.13.1 [#2160](https://github.com/hyperledger-web3j/web3j/pull/2160)
1416

1517

1618
### BREAKING CHANGES
1719

18-
*
20+
* Upgrade to Java 21 and Besu 25.2.1 [#2165](https://github.com/LFDT-web3j/web3j/pull/2165)
1921

2022
# [4.13.0](https://github.com/hyperledger-web3j/web3j/releases/tag/v4.13.0) (2025-03-05)
2123

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Web3j is a lightweight, highly modular, reactive, type safe Java and
1212
Android library for working with Smart Contracts and integrating with
1313
clients (nodes) on the Ethereum network:
1414

15-
![image](https://github.com/hyperledger-web3j/web3j-docs/blob/main/docs/img/web3j_network.png)
15+
![image](https://github.com/LFDT-web3j/web3j-docs/blob/main/docs/img/web3j_network.png)
1616

1717
This allows you to work with the [Ethereum](https://www.ethereum.org/)
1818
blockchain, without the additional overhead of having to write your own

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313

1414

1515
ext {
16-
bouncycastleVersion = '1.78.1'
16+
bouncycastleVersion = '1.80'
1717
jacksonVersion = '2.17.1'
1818
javaPoetVersion = '1.13.0'
1919
kotlinVersion = '1.9.24'
@@ -50,7 +50,7 @@ description 'Web3j base project.'
5050
'spotless'
5151
].each { buildScript ->
5252
download {
53-
src "https://raw.githubusercontent.com/hyperledger-web3j/web3j-build-tools/main/gradle/$buildScript/build.gradle"
53+
src "https://raw.githubusercontent.com/LFDT-web3j/web3j-build-tools/main/gradle/$buildScript/build.gradle"
5454
dest "$rootDir/gradle/$buildScript/build.gradle"
5555
overwrite false
5656
quiet true

codegen/src/main/java/org/web3j/codegen/SolidityFunctionWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public class SolidityFunctionWrapper extends Generator {
120120
+ "or the "
121121
+ SolidityFunctionWrapperGenerator.class.getName()
122122
+ " in the \n"
123-
+ "<a href=\"https://github.com/hyperledger-web3j/web3j/tree/main/codegen\">"
123+
+ "<a href=\"https://github.com/LFDT-web3j/web3j/tree/main/codegen\">"
124124
+ "codegen module</a> to update.\n";
125125

126126
private final boolean useNativeJavaTypes;

codegen/src/test/resources/solidity/abifuncs/build/java/AbiFuncs.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* <p><strong>Do not modify!</strong>
2020
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
2121
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
22-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
22+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
2323
*
2424
* <p>Generated with web3j version none.
2525
*/

codegen/src/test/resources/solidity/arrayofstructandstruct/build/java/ArrayOfStructAndStruct.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <p><strong>Do not modify!</strong>
2424
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
2525
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
26-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
26+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
2727
*
2828
* <p>Generated with web3j version none.
2929
*/

codegen/src/test/resources/solidity/arrayofstructclassgeneration/build/java/ArrayOfStructClassGeneration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <p><strong>Do not modify!</strong>
2424
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
2525
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
26-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
26+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
2727
*
2828
* <p>Generated with web3j version none.
2929
*/

codegen/src/test/resources/solidity/arraysinstruct/build/java/ArraysInStruct.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <p><strong>Do not modify!</strong>
3434
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
3535
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
36-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
36+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
3737
*
3838
* <p>Generated with web3j version none.
3939
*/

codegen/src/test/resources/solidity/eventparameters/build/java/EventParameters.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* <p><strong>Do not modify!</strong>
3232
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
3333
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
34-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
34+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
3535
*
3636
* <p>Generated with web3j version none.
3737
*/

codegen/src/test/resources/solidity/metacoin/build/java/MetaCoin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* <p><strong>Do not modify!</strong>
3232
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
3333
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
34-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
34+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
3535
*
3636
* <p>Generated with web3j version none.
3737
*/

codegen/src/test/resources/solidity/onlyinarraystruct/build/java/OnlyInArrayStruct.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <p><strong>Do not modify!</strong>
2525
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
2626
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
27-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
27+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
2828
*
2929
* <p>Generated with web3j version none.
3030
*/

codegen/src/test/resources/solidity/sameinnerstructname/build/java/SameInnerStructName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <p><strong>Do not modify!</strong>
2424
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
2525
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
26-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
26+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
2727
*
2828
* <p>Generated with web3j version none.
2929
*/

codegen/src/test/resources/solidity/staticarrayofstructsinstruct/build/java/StaticArrayOfStructsInStruct.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* <p><strong>Do not modify!</strong>
2828
* <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
2929
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
30-
* <a href="https://github.com/hyperledger-web3j/web3j/tree/main/codegen">codegen module</a> to update.
30+
* <a href="https://github.com/LFDT-web3j/web3j/tree/main/codegen">codegen module</a> to update.
3131
*
3232
* <p>Generated with web3j version none.
3333
*/

gradle/java/build.gradle

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
apply plugin: 'java'
22

3-
sourceCompatibility = 17
4-
targetCompatibility = 17
3+
java {
4+
toolchain {
5+
languageVersion.set(JavaLanguageVersion.of(21))
6+
}
7+
}
58

69
compileJava {
710
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"

gradle/repositories/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ repositories {
33
maven {
44
url = uri("https://plugins.gradle.org/m2/")
55
}
6-
jcenter()
76
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
87
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
98
}

integration-tests/build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ repositories {
99
maven { url "https://splunk.jfrog.io/splunk/ext-releases-local" }
1010
}
1111
ext {
12-
besuPluginVersion = '24.1.1'
13-
besuInternalVersion = '24.1.1'
12+
besuPluginVersion = '25.2.1'
13+
besuInternalVersion = '25.2.1'
1414
besuInternalCryptoVersion = '23.1.3'
15-
besuCryptoDepVersion = '0.8.3'
15+
besuCryptoDepVersion = '1.1.2'
16+
besuBlsVersion = '1.0.0'
1617
}
1718

1819
def withoutAbi = { exclude group: 'org.web3j', module: 'abi' }
@@ -41,7 +42,7 @@ dependencies {
4142
testImplementation "org.hyperledger.besu.internal:metrics-core:$besuInternalVersion",withoutAbi
4243
testImplementation "org.hyperledger.besu.internal:trie:$besuInternalVersion",withoutAbi
4344
testImplementation "org.hyperledger.besu.internal:util:$besuInternalVersion",withoutAbi
44-
testImplementation "org.hyperledger.besu:bls12-381:$besuCryptoDepVersion",withoutAbi
45+
testImplementation "org.hyperledger.besu:bls12-381:$besuBlsVersion",withoutAbi
4546
testImplementation "org.hyperledger.besu:secp256k1:$besuCryptoDepVersion",withoutAbi
4647
}
4748

0 commit comments

Comments
 (0)