Skip to content

Commit 5d0a012

Browse files
api: Bump Context to JDK 8
Java 26 complains about the obsolete version but does actually compile.
1 parent ee08f53 commit 5d0a012

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

api/build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ sourceSets {
1717
}
1818

1919
tasks.named("compileContextJava").configure {
20-
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_20)) {
21-
println("!!! Javac does not support generating Java 7 bytecode. Do not use for release builds !!!")
22-
} else if (JavaVersion.current().isJava9Compatible()) {
23-
options.release = 7
20+
if (JavaVersion.current().isJava9Compatible()) {
21+
options.release = 8
2422
} else {
25-
sourceCompatibility = JavaVersion.VERSION_1_7
26-
targetCompatibility = JavaVersion.VERSION_1_7
23+
sourceCompatibility = JavaVersion.VERSION_1_8
24+
targetCompatibility = JavaVersion.VERSION_1_8
2725
}
2826
}
2927

0 commit comments

Comments
 (0)