From 1130d3ee79f190050632b2c22565fb726ac4c2ba Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Mon, 9 Jan 2023 23:02:21 -0500 Subject: [PATCH] [ci-skip] Java version only accessible via project.extra not extra --- .../src/main/kotlin/crazyauctions.common-plugin.gradle.kts | 4 ++-- .../src/main/kotlin/crazyauctions.root-plugin.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-logic/src/main/kotlin/crazyauctions.common-plugin.gradle.kts b/build-logic/src/main/kotlin/crazyauctions.common-plugin.gradle.kts index ca1286d..637d3b5 100644 --- a/build-logic/src/main/kotlin/crazyauctions.common-plugin.gradle.kts +++ b/build-logic/src/main/kotlin/crazyauctions.common-plugin.gradle.kts @@ -17,11 +17,11 @@ repositories { } java { - toolchain.languageVersion.set(JavaLanguageVersion.of(extra["java_version"].toString().toInt())) + toolchain.languageVersion.set(JavaLanguageVersion.of(project.extra["java_version"].toString().toInt())) } tasks { compileJava { - options.release.set(extra["java_version"].toString().toInt()) + options.release.set(project.extra["java_version"].toString().toInt()) } } \ No newline at end of file diff --git a/build-logic/src/main/kotlin/crazyauctions.root-plugin.gradle.kts b/build-logic/src/main/kotlin/crazyauctions.root-plugin.gradle.kts index 05e08e8..c6df4a1 100644 --- a/build-logic/src/main/kotlin/crazyauctions.root-plugin.gradle.kts +++ b/build-logic/src/main/kotlin/crazyauctions.root-plugin.gradle.kts @@ -6,7 +6,7 @@ plugins { } java { - toolchain.languageVersion.set(JavaLanguageVersion.of(extra["java_version"].toString().toInt())) + toolchain.languageVersion.set(JavaLanguageVersion.of(project.extra["java_version"].toString().toInt())) } tasks { @@ -19,6 +19,6 @@ tasks { } compileJava { - options.release.set(extra["java_version"].toString().toInt()) + options.release.set(project.extra["java_version"].toString().toInt()) } } \ No newline at end of file