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 /build.gradle.kts | |
| parent | 80078cc2cb6916df1ead2ebffddf56ce89db5b95 (diff) | |
| download | art-playground-openrndr-df784c99c16a62aa718590427ed5a67dfa855fda.tar.gz art-playground-openrndr-df784c99c16a62aa718590427ed5a67dfa855fda.zip | |
Update to Kotlin 2.0.0
Diffstat (limited to 'build.gradle.kts')
| -rw-r--r-- | build.gradle.kts | 7 |
1 files changed, 7 insertions, 0 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" } |
