diff options
author | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2024-04-25 04:18:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 10:18:36 +0200 |
commit | 9bb86792bf4740b6650ccd40b0d47318cf1a3929 (patch) | |
tree | 339575b9f17ff75a871b0500e1cd8031b89dd638 /build.gradle.kts | |
parent | 3a12dc22d6ec3924067c7b32582cb6a1ed113344 (diff) | |
download | Remap-9bb86792bf4740b6650ccd40b0d47318cf1a3929.tar.gz Remap-9bb86792bf4740b6650ccd40b0d47318cf1a3929.tar.bz2 Remap-9bb86792bf4740b6650ccd40b0d47318cf1a3929.zip |
Add support for Kotlin 1.9.0 (#21)
The KotlinSourceRoot constructor was updated to include an additional
argument related to Kotlin Multiplatform. We always pass null for this
argument.
Co-authored-by: Wyvest <wyvestbusiness@gmail.com>
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index b6214a3..4215a6a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version "1.5.21" + kotlin("jvm") version "1.9.23" `maven-publish` } @@ -22,6 +22,7 @@ val testB by sourceSets.creating kotlinVersion("1.5.21", isPrimaryVersion = true) kotlinVersion("1.6.20") +kotlinVersion("1.9.0") dependencies { api("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.21") @@ -53,6 +54,13 @@ tasks.test { useJUnitPlatform() } +tasks.withType<KotlinCompile> { + kotlinOptions { + apiVersion = "1.5" + languageVersion = "1.5" + } +} + fun kotlinVersion(version: String, isPrimaryVersion: Boolean = false) { val name = version.replace(".", "") |