Skip to content

Commit 36b2820

Browse files
committed
Add support for Java 21 target and update dependencies
1 parent 500fdc3 commit 36b2820

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

build.gradle

+10-6
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ repositories {
77
}
88

99
dependencies {
10-
api 'org.ow2.asm:asm:9.2'
11-
compileOnly 'org.ow2.asm:asm-util:9.2' // Used for opt-in debugging
12-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
13-
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.1'
14-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
15-
testImplementation 'org.ow2.asm:asm-util:9.2'
10+
api 'org.ow2.asm:asm:9.7'
11+
compileOnly 'org.ow2.asm:asm-util:9.7' // Used for opt-in debugging
12+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.0'
13+
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.0'
14+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.0'
15+
testImplementation 'org.ow2.asm:asm-util:9.7'
1616
}
1717

1818
tasks.named('test') {
1919
useJUnitPlatform()
2020
}
21+
22+
compileJava {
23+
options.release = 17
24+
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

src/main/java/fi/benjami/code4jvm/config/JavaVersion.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public enum JavaVersion {
1919
JAVA_14(Opcodes.V14),
2020
JAVA_15(Opcodes.V15),
2121
JAVA_16(Opcodes.V16),
22-
JAVA_17(Opcodes.V17);
22+
JAVA_17(Opcodes.V17),
23+
JAVA_18(Opcodes.V18),
24+
JAVA_19(Opcodes.V19),
25+
JAVA_21(Opcodes.V21);
2326

2427
private final int opcode;
2528

0 commit comments

Comments
 (0)