Skip to content

Commit 3308507

Browse files
api: Bump Context to JDK 8
1 parent ac02c6f commit 3308507

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

api/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ 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 !!!")
20+
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_27)) {
21+
println("!!! Javac does not support generating Java 8 bytecode. Do not use for release builds !!!")
2222
} else if (JavaVersion.current().isJava9Compatible()) {
23-
options.release = 7
23+
options.release = 8
2424
} else {
25-
sourceCompatibility = JavaVersion.VERSION_1_7
26-
targetCompatibility = JavaVersion.VERSION_1_7
25+
sourceCompatibility = JavaVersion.VERSION_1_8
26+
targetCompatibility = JavaVersion.VERSION_1_8
2727
}
2828
}
2929

0 commit comments

Comments
 (0)