Skip to content

Commit 95bb757

Browse files
authored
Merge pull request #34 from cketti/update_kotlin
Update Kotlin to 2.0.0
2 parents 7dce8fd + 352a964 commit 95bb757

File tree

5 files changed

+125
-111
lines changed

5 files changed

+125
-111
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [Unreleased]
4+
### Changed
5+
- Updated to Kotlin 2.0.0
6+
37
## [0.7.0] - 2024-03-02
48
### Added
59
- Added `StringBuilder.setCodePointAt()`, `StringBuilder.insertCodePointAt()`, and `StringBuilder.deleteCodePointAt()`

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
kotlin = "1.9.24"
2+
kotlin = "2.0.0"
33

44
[plugins]
55
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

kotlin-codepoints-deluxe/build.gradle.kts

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
3+
14
plugins {
25
alias(libs.plugins.kotlin.multiplatform)
36
alias(libs.plugins.vanniktech.maven.publish)
@@ -17,11 +20,7 @@ kotlin {
1720
browser {}
1821
}
1922

20-
jvm {
21-
compilations.all {
22-
kotlinOptions.jvmTarget = "1.8"
23-
}
24-
}
23+
jvm()
2524

2625
linuxArm64()
2726
linuxX64()
@@ -61,6 +60,10 @@ kotlin {
6160
}
6261
}
6362

63+
tasks.withType<KotlinJvmCompile> {
64+
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
65+
}
66+
6467
@Suppress("UnstableApiUsage")
6568
mavenPublishing {
6669
pom {

kotlin-codepoints/build.gradle.kts

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
24

35
plugins {
46
alias(libs.plugins.kotlin.multiplatform)
@@ -19,11 +21,7 @@ kotlin {
1921
browser {}
2022
}
2123

22-
jvm {
23-
compilations.all {
24-
kotlinOptions.jvmTarget = "1.8"
25-
}
26-
}
24+
jvm()
2725

2826
linuxArm64()
2927
linuxX64()
@@ -50,10 +48,14 @@ kotlin {
5048

5149
@OptIn(ExperimentalKotlinGradlePluginApi::class)
5250
applyDefaultHierarchyTemplate {
53-
group("nonJvm") {
54-
withJs()
55-
withNative()
56-
withWasm()
51+
common {
52+
withJvm()
53+
group("nonJvm") {
54+
withJs()
55+
withNative()
56+
withWasmJs()
57+
withWasmWasi()
58+
}
5759
}
5860
}
5961

@@ -66,6 +68,10 @@ kotlin {
6668
}
6769
}
6870

71+
tasks.withType<KotlinJvmCompile> {
72+
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
73+
}
74+
6975
@Suppress("UnstableApiUsage")
7076
mavenPublishing {
7177
pom {

0 commit comments

Comments
 (0)