From 14ddd6978c2b0a3f0851e6cdc39608e6c6622ca3 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Thu, 28 Dec 2023 21:41:39 +0800 Subject: [PATCH] chore: merge and update to java 21 --- build.gradle.kts | 14 +------------- flexilocale-gradle-plugin/build.gradle.kts | 13 ++++++++++--- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 64ba158..2f7fe79 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,16 +1,4 @@ plugins { autowire(libs.plugins.kotlin.jvm) apply false -} - -allprojects { - tasks.withType().configureEach { - kotlinOptions { - jvmTarget = "17" - freeCompilerArgs = listOf( - "-Xno-param-assertions", - "-Xno-call-assertions", - "-Xno-receiver-assertions" - ) - } - } + autowire(libs.plugins.maven.publish) apply false } \ No newline at end of file diff --git a/flexilocale-gradle-plugin/build.gradle.kts b/flexilocale-gradle-plugin/build.gradle.kts index 9219535..38de87b 100644 --- a/flexilocale-gradle-plugin/build.gradle.kts +++ b/flexilocale-gradle-plugin/build.gradle.kts @@ -8,14 +8,21 @@ group = property.project.groupName version = property.project.version java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 withSourcesJar() } kotlin { - jvmToolchain(17) + jvmToolchain(21) sourceSets.all { languageSettings { languageVersion = "2.0" } } + compilerOptions { + freeCompilerArgs = listOf( + "-Xno-param-assertions", + "-Xno-call-assertions", + "-Xno-receiver-assertions" + ) + } } dependencies {