Skip to content

Commit

Permalink
fix used jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Aug 1, 2024
1 parent b40acff commit 03abb1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 2 additions & 4 deletions allure-jooq/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ dependencies {
testRuntimeOnly("org.postgresql:postgresql:42.7.3")
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.compileJava {
options.release.set(17)
}

tasks.jar {
Expand Down
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,7 @@ configure(libs) {
tasks {
compileJava {
options.compilerArgs.add("-Xlint:-options")
if (JavaVersion.current().isJava8) {
java.targetCompatibility = JavaVersion.VERSION_1_8
} else {
options.release.set(8)
}
options.release.set(8)
}

compileTestJava {
Expand Down

0 comments on commit 03abb1e

Please sign in to comment.