aboutsummaryrefslogtreecommitdiff
path: root/loader/build.gradle
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-02-24 15:30:32 +0100
committerGitHub <noreply@github.com>2023-02-24 23:30:32 +0900
commitb058ca61ff4056a1b301f826a5542dddd71e209d (patch)
treea419999ea22ba48b9d8814b5fc6ce7c291c51273 /loader/build.gradle
parentf547a84a8d3ae0b9f34ca43caac5039899950fd1 (diff)
downloadSkyblock-Dungeons-Guide-b058ca61ff4056a1b301f826a5542dddd71e209d.tar.gz
Skyblock-Dungeons-Guide-b058ca61ff4056a1b301f826a5542dddd71e209d.tar.bz2
Skyblock-Dungeons-Guide-b058ca61ff4056a1b301f826a5542dddd71e209d.zip
Optional Signing and Standalone Jar (#332)
* Optional Signing and Standalone Jar * - devstandalone Signed-off-by: syeyoung <cyoung06@naver.com> --------- Signed-off-by: syeyoung <cyoung06@naver.com> Co-authored-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/build.gradle')
-rw-r--r--loader/build.gradle33
1 files changed, 33 insertions, 0 deletions
diff --git a/loader/build.gradle b/loader/build.gradle
index 6481bde9..621dc88d 100644
--- a/loader/build.gradle
+++ b/loader/build.gradle
@@ -65,6 +65,12 @@ configurations {
transitive = false
visible = false
}
+ unmappedMod {
+ visible = false
+ }
+ remappedMod {
+ visible = false
+ }
}
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
@@ -86,6 +92,9 @@ dependencies {
devEnv("me.djtheredstoner:DevAuth-forge-legacy:1.1.0")
+
+ unmappedMod(project(path: ':mod', configuration: 'unmappedMod'))
+ remappedMod(project(path: ':mod', configuration: 'remappedMod'))
}
@@ -128,3 +137,27 @@ tasks.named("remapJar") {
tasks.assemble.dependsOn tasks.remapJar
+
+task standaloneConsumerJar(type: Jar) {
+ archiveClassifier = "standalone"
+ from(zipTree(tasks.remapJar.archiveFile))
+ from(configurations.remappedMod.files) {
+ rename ".+\\.jar", "mod.jar"
+ }
+ doLast {
+ println(archiveFile.get().asFile)
+ }
+}
+task standaloneDevJar(type: Jar) {
+ archiveClassifier = "devStandalone"
+ from(zipTree(tasks.shadowJar.archiveFile))
+ from(configurations.unmappedMod.files) {
+ rename ".+\\.jar", "mod.jar"
+ }
+ doLast {
+ println(archiveFile.get().asFile)
+ }
+}
+
+
+