diff --git a/api/build.gradle b/api/build.gradle index 745fa00b3f1..7a2b6ddf216 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -17,13 +17,11 @@ sourceSets { } tasks.named("compileContextJava").configure { - if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_20)) { - println("!!! Javac does not support generating Java 7 bytecode. Do not use for release builds !!!") - } else if (JavaVersion.current().isJava9Compatible()) { - options.release = 7 + if (JavaVersion.current().isJava9Compatible()) { + options.release = 8 } else { - sourceCompatibility = JavaVersion.VERSION_1_7 - targetCompatibility = JavaVersion.VERSION_1_7 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } }