Skip to content

Commit 2c35df3

Browse files
committed
Update build toolchain from Java 17 to Java 21
1 parent 5724a19 commit 2c35df3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/gradle-ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/setup-java@v4
2020
with:
2121
distribution: 'temurin'
22-
java-version: 17
22+
java-version: 21
2323
- name: Initialize CodeQL
2424
uses: github/codeql-action/init@v3
2525
with:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ and data.
155155

156156
### Recent Releases
157157

158+
#### Okapi Barcode 0.4.7
159+
- Update build toolchain from Java 17 to Java 21 (minimum target runtime remains Java 8)
160+
158161
#### Okapi Barcode 0.4.6
159162
- QR Code: allow FNC1 escape sequences in user-provided content
160163
- Code 39 Extended: allow empty content, if user requests it

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'eclipse'
44
apply plugin: 'jacoco'
55

66
group = 'uk.org.okapibarcode'
7-
version = '0.4.6'
7+
version = '0.4.7'
88

99
repositories {
1010
mavenCentral()
@@ -20,8 +20,9 @@ dependencies {
2020
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
2121
}
2222

23-
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
23+
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
2424
compileJava.options.release = 8
25+
compileJava.options.compilerArgs << '-Xlint:-options' // Java 8 target is considered obsolete when building on Java 21; silence this warning
2526
compileJava.options.encoding = 'UTF-8'
2627
compileTestJava.options.encoding = 'UTF-8'
2728
javadoc.options.encoding = 'UTF-8'

0 commit comments

Comments
 (0)