From f55f1457c54de8a55c7b1f73f4e55b65c5371809 Mon Sep 17 00:00:00 2001 From: Isaac Udy Date: Fri, 15 Nov 2024 18:06:30 +1300 Subject: [PATCH] Update JVM targets that were missed in previous changes --- enro-lint/build.gradle.kts | 8 +++++++- enro-processor/build.gradle.kts | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/enro-lint/build.gradle.kts b/enro-lint/build.gradle.kts index 26e07c67..bc71155c 100644 --- a/enro-lint/build.gradle.kts +++ b/enro-lint/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget + plugins { id("java-library") id("kotlin") @@ -16,4 +18,8 @@ java { attributes("Lint-Registry-v2" to "dev.enro.lint.EnroIssueRegistry") } } - +kotlin { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_17) + } +} diff --git a/enro-processor/build.gradle.kts b/enro-processor/build.gradle.kts index 5bc1d659..31b80841 100644 --- a/enro-processor/build.gradle.kts +++ b/enro-processor/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget + plugins { id("java-library") id("kotlin") @@ -30,4 +32,10 @@ afterEvaluate { java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 +} + +kotlin { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_17) + } } \ No newline at end of file