aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts20
1 files changed, 5 insertions, 15 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 294f7db..a9c3470 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -61,16 +61,6 @@ repositories {
maven("https://repo.woverflow.cc/")
}
-val relocated = registerRelocationAttribute("relocate") {
- relocate("gg.essential", "cc.polyfrost.oneconfig.libs")
- relocate("me.kbrewster", "cc.polyfrost.oneconfig.libs")
- relocate("com.llamalad7", "cc.polyfrost.oneconfig.libs")
-}
-
-val shadeRelocated: Configuration by configurations.creating {
- attributes { attribute(relocated, true) }
-}
-
val shade: Configuration by configurations.creating {
configurations.implementation.get().extendsFrom(this)
}
@@ -114,16 +104,14 @@ dependencies {
isTransitive = false
}
- shadeRelocated("gg.essential:universalcraft-$platform:211") {
+ shade("gg.essential:universalcraft-$platform:211") {
isTransitive = false
}
- shadeRelocated("com.github.KevinPriv:keventbus:c52e0a2ea0") {
+ shade("com.github.KevinPriv:keventbus:c52e0a2ea0") {
isTransitive = false
}
- annotationProcessor(shadeRelocated("com.github.LlamaLad7:MixinExtras:0.0.10")!!)
-
// for other mods and universalcraft
shade("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")
shade("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21")
@@ -157,7 +145,6 @@ dependencies {
lwjglNative("org.lwjgl:lwjgl-tinyfd:3.3.1:natives-macos")
lwjglNative("org.lwjgl:lwjgl-nanovg:3.3.1:natives-macos")
shade(lwjglJar.get().outputs.files)
- shade(prebundle(shadeRelocated))
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.6.21")
}
@@ -222,6 +209,9 @@ tasks {
archiveClassifier.set("dev")
configurations = listOf(shade, lwjglNative)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+
+ relocate("gg.essential", "cc.polyfrost.oneconfig.libs")
+ relocate("me.kbrewster", "cc.polyfrost.oneconfig.libs")
}
remapJar {
input.set(shadowJar.get().archiveFile)