Skip to content

Commit db9426b

Browse files
committed
Maybe this fixes kotlin?
1 parent 9f6e0a4 commit db9426b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

bukkit/build.gradle.kts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
implementation(project(":common"))
2222

2323
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
24-
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.9.22") // resolve conflicts with eco
24+
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.22")
2525
}
2626

2727
java {
@@ -46,11 +46,8 @@ tasks.withType<ShadowJar> {
4646
relocate("org.intellij", "$relocatePath.intellij")
4747
relocate("org.reactivestreams", "$relocatePath.reactivestreams")
4848
relocate("retrofit2", "$relocatePath.retrofit2")
49-
50-
// Exclude Kotlin to avoid conflicts with eco
51-
exclude("kotlin/**")
52-
exclude("org/jetbrains/kotlin/**")
53-
exclude("META-INF/kotlin*")
49+
relocate("kotlin", "$relocatePath.kotlin") // Relocate instead of exclude
50+
relocate("org.jetbrains.kotlin", "$relocatePath.jetbrains.kotlin") // Relocate instead of exclude
5451

5552
// Prevent Paper from giving errors about duplicate files
5653
exclude("META-INF/AL2.0")

0 commit comments

Comments
 (0)