Skip to content

Commit

Permalink
Update kotlin and ktx.coroutines (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
radstevee authored Jan 6, 2025
1 parent a126808 commit c4d5af6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.gradle.spotless.SpotlessPlugin
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import xyz.jpenilla.runpaper.task.RunServer
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.run.paper) apply false

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

Expand All @@ -29,7 +31,7 @@ subprojects {

repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.papermc.io/repository/maven-public/")
}

configure<SpotlessExtension> {
Expand All @@ -45,9 +47,10 @@ subprojects {
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = javaVersion.toString()
freeCompilerArgs += listOf("-Xexplicit-api=strict")
explicitApiMode.set(ExplicitApiMode.Strict)

compilerOptions {
jvmTarget.set(JvmTarget.fromTarget(javaVersion.toString()))
}
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ run-paper = "2.3.0"
spotless = "6.18.0"

# Tooling
kotlin-coroutines = "1.9.0-RC"
kotlin-coroutines = "1.10.1"
guava = "32.1.2-jre"
slf4j = "2.0.9"
caffeine = "3.1.8"
Expand Down

0 comments on commit c4d5af6

Please sign in to comment.