Skip to content

Commit 121c399

Browse files
authored
Merge pull request #98 from LFDT-web3j/upgrade_to_21
upgrade versions
2 parents 044a1a1 + 3da5e3d commit 121c399

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Set up JDK 17
15+
- name: Set up JDK 21
1616
uses: actions/setup-java@v1
1717
with:
18-
java-version: 17
18+
java-version: 21
1919
- name: Cache Gradle packages
2020
uses: actions/cache@v4
2121
with:

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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]() (Upcoming)
6+
# [4.14.0]() (Upcoming)
77

88
### Bug Fixes
99

@@ -15,7 +15,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
1515

1616
### BREAKING CHANGES
1717

18-
*
18+
* Migrate to java 21 [#98](https://github.com/LFDT-web3j/web3j-gradle-plugin/pull/98)
1919

2020
# [4.13.0](https://github.com/hyperledger-web3j/web3j-gradle-plugin/releases/tag/v4.13.0) (2024-03-07)
2121

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
description = 'Gradle plugin providing tasks to generate Web3j contracts from Solidity.'
1313

1414
java {
15-
sourceCompatibility = 17
15+
sourceCompatibility = 21
1616
}
1717

1818
ext {
@@ -29,7 +29,7 @@ apply {
2929
'junit'
3030
].each { buildScript ->
3131
download.run {
32-
src "https://raw.githubusercontent.com/hyperledger-web3j/web3j-build-tools/main/gradle/$buildScript/build.gradle"
32+
src "https://raw.githubusercontent.com/LFDT-web3j/web3j-build-tools/main/gradle/$buildScript/build.gradle"
3333
dest "$rootDir/gradle/$buildScript/build.gradle"
3434
overwrite true
3535
quiet true
@@ -67,7 +67,7 @@ dependencies {
6767

6868
gradlePlugin {
6969
website = 'https://web3j.io/'
70-
vcsUrl = 'https://github.com/hyperledger-web3j/web3j-gradle-plugin'
70+
vcsUrl = 'https://github.com/LFDT-web3j/web3j-gradle-plugin'
7171
plugins {
7272
web3j {
7373
description = 'Gradle plugin providing tasks to generate web3j contracts from Solidity.'

gradle.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
group=org.web3j
2-
version=4.13.0
2+
version=4.14.0
33
org.gradle.caching=true
44
org.gradle.parallel=true
5-
solidityPluginVersion=0.5.2
6-
kotlinVersion=1.9.24
5+
solidityPluginVersion=0.6.0
6+
kotlinVersion=2.1.0

gradle/java/build.gradle

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

33
java {
4-
sourceCompatibility = 17
5-
targetCompatibility = 17
4+
toolchain {
5+
languageVersion.set(JavaLanguageVersion.of(21))
6+
}
67
}
7-
88
compileJava {
99
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
1010
}

gradle/repositories/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
repositories {
22
mavenCentral()
3-
jcenter()
43
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
54
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
65
}

gradle/spotless/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ apply plugin: 'com.diffplug.spotless'
33
apply plugin: "de.undercouch.download"
44

55
task downloadJavaLicense(type: Download) {
6-
src 'https://raw.githubusercontent.com/hyperledger-web3j/web3j-build-tools/main/gradle/spotless/java.license'
6+
src 'https://raw.githubusercontent.com/LFDT-web3j/web3j-build-tools/main/gradle/spotless/java.license'
77
dest new File("$rootDir/gradle/spotless",'java.license')
88
quiet true
99
onlyIfModified true
1010
}
1111

1212
task downloadFormatterProperties(type: Download) {
13-
src 'https://raw.githubusercontent.com/hyperledger-web3j/web3j-build-tools/main/gradle/spotless/formatter.properties'
13+
src 'https://raw.githubusercontent.com/LFDT-web3j/web3j-build-tools/main/gradle/spotless/formatter.properties'
1414
dest new File("$rootDir/gradle/spotless",'formatter.properties')
1515
quiet true
1616
onlyIfModified true

0 commit comments

Comments
 (0)