Skip to content

Commit c4d5af6

Browse files
authored
Update kotlin and ktx.coroutines (#14)
1 parent a126808 commit c4d5af6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

build.gradle.kts

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import com.diffplug.gradle.spotless.SpotlessExtension
22
import com.diffplug.gradle.spotless.SpotlessPlugin
3+
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
4+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
35
import xyz.jpenilla.runpaper.task.RunServer
46
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
57

68
plugins {
79
alias(libs.plugins.run.paper) apply false
810

911
// Kotlin plugin prefers to be applied to parent when it's used in multiple sub-modules.
10-
kotlin("jvm") version "1.9.24" apply false
12+
kotlin("jvm") version "2.1.0" apply false
1113
alias(libs.plugins.spotless)
1214
}
1315

@@ -29,7 +31,7 @@ subprojects {
2931

3032
repositories {
3133
mavenCentral()
32-
maven("https://papermc.io/repo/repository/maven-public/")
34+
maven("https://repo.papermc.io/repository/maven-public/")
3335
}
3436

3537
configure<SpotlessExtension> {
@@ -45,9 +47,10 @@ subprojects {
4547
}
4648

4749
tasks.withType<KotlinCompile> {
48-
kotlinOptions {
49-
jvmTarget = javaVersion.toString()
50-
freeCompilerArgs += listOf("-Xexplicit-api=strict")
50+
explicitApiMode.set(ExplicitApiMode.Strict)
51+
52+
compilerOptions {
53+
jvmTarget.set(JvmTarget.fromTarget(javaVersion.toString()))
5154
}
5255
}
5356
}

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ run-paper = "2.3.0"
55
spotless = "6.18.0"
66

77
# Tooling
8-
kotlin-coroutines = "1.9.0-RC"
8+
kotlin-coroutines = "1.10.1"
99
guava = "32.1.2-jre"
1010
slf4j = "2.0.9"
1111
caffeine = "3.1.8"

0 commit comments

Comments
 (0)