aboutsummaryrefslogtreecommitdiff
path: root/loader/build.gradle
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-24 23:30:01 +0900
committersyeyoung <cyoung06@naver.com>2023-02-24 23:30:01 +0900
commit6f0a239260df4b9ac776830b1ac28d4b9cc079f2 (patch)
treea419999ea22ba48b9d8814b5fc6ce7c291c51273 /loader/build.gradle
parent62cd2abb3b57a7db6a559c37352f253a208b166e (diff)
downloadSkyblock-Dungeons-Guide-feat/standalone.tar.gz
Skyblock-Dungeons-Guide-feat/standalone.tar.bz2
Skyblock-Dungeons-Guide-feat/standalone.zip
- devstandalonefeat/standalone
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/build.gradle')
-rw-r--r--loader/build.gradle20
1 files changed, 18 insertions, 2 deletions
diff --git a/loader/build.gradle b/loader/build.gradle
index 3147317a..621dc88d 100644
--- a/loader/build.gradle
+++ b/loader/build.gradle
@@ -65,6 +65,9 @@ configurations {
transitive = false
visible = false
}
+ unmappedMod {
+ visible = false
+ }
remappedMod {
visible = false
}
@@ -90,6 +93,7 @@ dependencies {
devEnv("me.djtheredstoner:DevAuth-forge-legacy:1.1.0")
+ unmappedMod(project(path: ':mod', configuration: 'unmappedMod'))
remappedMod(project(path: ':mod', configuration: 'remappedMod'))
}
@@ -134,10 +138,22 @@ tasks.named("remapJar") {
tasks.assemble.dependsOn tasks.remapJar
-task standaloneJar(type: Jar) {
+task standaloneConsumerJar(type: Jar) {
archiveClassifier = "standalone"
from(zipTree(tasks.remapJar.archiveFile))
- from(configurations.remappedMod.files)
+ 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)
}