diff --git a/allure-jooq/build.gradle.kts b/allure-jooq/build.gradle.kts index b0b1c788..00ff3b0d 100644 --- a/allure-jooq/build.gradle.kts +++ b/allure-jooq/build.gradle.kts @@ -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 { diff --git a/build.gradle.kts b/build.gradle.kts index ce3370c8..8c59bb7b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {