diff options
| author | Abe Pazos <abe@hamoid.com> | 2024-05-27 22:42:21 +0200 |
|---|---|---|
| committer | Abe Pazos <abe@hamoid.com> | 2024-05-27 22:42:21 +0200 |
| commit | df784c99c16a62aa718590427ed5a67dfa855fda (patch) | |
| tree | da14ef25d529bcaeccd2745e677b6d0d9f0507ed | |
| parent | 80078cc2cb6916df1ead2ebffddf56ce89db5b95 (diff) | |
| download | art-playground-openrndr-df784c99c16a62aa718590427ed5a67dfa855fda.tar.gz art-playground-openrndr-df784c99c16a62aa718590427ed5a67dfa855fda.zip | |
Update to Kotlin 2.0.0
| -rw-r--r-- | build.gradle.kts | 7 | ||||
| -rw-r--r-- | gradle/libs.versions.toml | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 83e1a2f..8b6a2d9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import org.gradle.internal.os.OperatingSystem import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform +import org.jetbrains.kotlin.gradle.dsl.KotlinVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile group = "org.openrndr.template" @@ -158,6 +159,12 @@ java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } +kotlin { + compilerOptions { + languageVersion.set(KotlinVersion.KOTLIN_2_0) + apiVersion.set(KotlinVersion.KOTLIN_2_0) + } +} tasks.withType<KotlinCompile> { kotlinOptions.jvmTarget = "11" } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f904a40..4b6f1b9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -kotlin = "1.9.24" +kotlin = "2.0.0" openrndr = "0.4.5-alpha3" orx = "0.4.5-alpha3" orsl = "0.4.5-alpha3" |
