diff --git a/build.gradle.kts b/build.gradle.kts index 287c8ac..f415d37 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ repositories { dependencies { compileOnly("me.clip:placeholderapi:2.11.6") compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT") - implementation("org.jetbrains.kotlin:kotlin-stdlib:2.1.0") + compileOnly("org.jetbrains.kotlin:kotlin-stdlib:2.1.0") implementation("net.hareworks:kommand-lib:1.1") implementation("net.hareworks:permits-lib:1.1") compileOnly("net.kyori:adventure-text-minimessage:4.17.0") @@ -40,6 +40,10 @@ paper { required = false load = PaperPluginDescription.RelativeLoadOrder.BEFORE } + register("hcu-core") { + required = true + load = PaperPluginDescription.RelativeLoadOrder.BEFORE + } } } tasks { @@ -49,9 +53,12 @@ tasks { shadowJar { archiveClassifier.set("min") minimize { - exclude("net.hareworks:kommand-lib") - exclude("net.hareworks:permits-lib") + exclude(dependency("net.hareworks:kommand-lib")) + exclude(dependency("net.hareworks:permits-lib")) + exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib")) + exclude(dependency("org.jetbrains.kotlin:kotlin-reflect")) + exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk8")) + exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk7")) } - relocate("kotlin", "net.hareworks.ghostdisplays.libs.kotlin") } }