Skip to content

Commit

Permalink
Merge pull request #34 from cketti/update_kotlin
Browse files Browse the repository at this point in the history
Update Kotlin to 2.0.0
  • Loading branch information
cketti authored Jun 9, 2024
2 parents 7dce8fd + 352a964 commit 95bb757
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 111 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [Unreleased]
### Changed
- Updated to Kotlin 2.0.0

## [0.7.0] - 2024-03-02
### Added
- Added `StringBuilder.setCodePointAt()`, `StringBuilder.insertCodePointAt()`, and `StringBuilder.deleteCodePointAt()`
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlin = "1.9.24"
kotlin = "2.0.0"

[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
Expand Down
13 changes: 8 additions & 5 deletions kotlin-codepoints-deluxe/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.vanniktech.maven.publish)
Expand All @@ -17,11 +20,7 @@ kotlin {
browser {}
}

jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
jvm()

linuxArm64()
linuxX64()
Expand Down Expand Up @@ -61,6 +60,10 @@ kotlin {
}
}

tasks.withType<KotlinJvmCompile> {
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
}

@Suppress("UnstableApiUsage")
mavenPublishing {
pom {
Expand Down
24 changes: 15 additions & 9 deletions kotlin-codepoints/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

plugins {
alias(libs.plugins.kotlin.multiplatform)
Expand All @@ -19,11 +21,7 @@ kotlin {
browser {}
}

jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
jvm()

linuxArm64()
linuxX64()
Expand All @@ -50,10 +48,14 @@ kotlin {

@OptIn(ExperimentalKotlinGradlePluginApi::class)
applyDefaultHierarchyTemplate {
group("nonJvm") {
withJs()
withNative()
withWasm()
common {
withJvm()
group("nonJvm") {
withJs()
withNative()
withWasmJs()
withWasmWasi()
}
}
}

Expand All @@ -66,6 +68,10 @@ kotlin {
}
}

tasks.withType<KotlinJvmCompile> {
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
}

@Suppress("UnstableApiUsage")
mavenPublishing {
pom {
Expand Down
Loading

0 comments on commit 95bb757

Please sign in to comment.