From 03abb1e56ca3d36ad88849f48541bc326377782b Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Thu, 1 Aug 2024 11:41:31 +0100 Subject: [PATCH] fix used jdk --- allure-jooq/build.gradle.kts | 6 ++---- build.gradle.kts | 6 +----- 2 files changed, 3 insertions(+), 9 deletions(-) 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 {