Skip to content

Commit f7e8538

Browse files
committed
Use source/target compatibility
`options.release` usage was banned by repo owners
1 parent d7c2e10 commit f7e8538

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ allprojects {
7373
tasks {
7474
withType<JavaCompile> {
7575
// See: https://docs.gradle.org/current/userguide/building_java_projects.html#sec:compiling_with_release
76-
if (JavaVersion.current().isJava10Compatible) {
77-
options.release = 8
78-
} else {
79-
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
80-
targetCompatibility = JavaVersion.VERSION_1_8.toString()
81-
}
76+
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
77+
targetCompatibility = JavaVersion.VERSION_1_8.toString()
8278
options.encoding = "UTF-8"
8379
options.compilerArgs.add("-Xlint:all")
8480
}

0 commit comments

Comments
 (0)