aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-05 15:27:36 +0700
committerGitHub <noreply@github.com>2022-06-05 10:27:36 +0200
commit44dfbbb419f1736530c04c02a651f7757cf83f3d (patch)
tree1e8171573680b9415cecf199d479d49f7ad1f48a /build.gradle.kts
parent494d4f0bd0856e8e8d373003c82729ca722c6ccf (diff)
downloadOneConfig-44dfbbb419f1736530c04c02a651f7757cf83f3d.tar.gz
OneConfig-44dfbbb419f1736530c04c02a651f7757cf83f3d.tar.bz2
OneConfig-44dfbbb419f1736530c04c02a651f7757cf83f3d.zip
rewrite command manager, stop using essential relocate, and reformat code (#34)
* reformat code * reformat code rewrite command manager stop using essential relocate
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)