File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
import com.diffplug.gradle.spotless.SpotlessExtension
2
2
import com.diffplug.gradle.spotless.SpotlessPlugin
3
+ import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
4
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3
5
import xyz.jpenilla.runpaper.task.RunServer
4
6
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5
7
6
8
plugins {
7
9
alias(libs.plugins.run.paper) apply false
8
10
9
11
// 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
11
13
alias(libs.plugins.spotless)
12
14
}
13
15
@@ -29,7 +31,7 @@ subprojects {
29
31
30
32
repositories {
31
33
mavenCentral()
32
- maven(" https://papermc.io/repo /repository/maven-public/" )
34
+ maven(" https://repo. papermc.io/repository/maven-public/" )
33
35
}
34
36
35
37
configure<SpotlessExtension > {
@@ -45,9 +47,10 @@ subprojects {
45
47
}
46
48
47
49
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()))
51
54
}
52
55
}
53
56
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ run-paper = "2.3.0"
5
5
spotless = " 6.18.0"
6
6
7
7
# Tooling
8
- kotlin-coroutines = " 1.9.0-RC "
8
+ kotlin-coroutines = " 1.10.1 "
9
9
guava = " 32.1.2-jre"
10
10
slf4j = " 2.0.9"
11
11
caffeine = " 3.1.8"
You can’t perform that action at this time.
0 commit comments