This commit is contained in:
Color_yr committed 2026-08-23 09:48:55 +08:00
1 parent b8bb1aac1e
commit 04d1ed54be
4 files changed
+25 -8

No files matched your search

+7 -1
View File
@@ -1,3 +1,5 @@
import com.gtnewhorizons.retrofuturagradle.mcp.ReobfuscatedJar
plugins {
id("com.gtnewhorizons.retrofuturagradle") version "2.0.2"
}
@@ -27,12 +29,16 @@ tasks {
shadowJar {
archiveFileName.set("[forge-1.7.10]AllMusic_Client-${project.version}.jar")
}
val reobfShadowJar = named<ReobfuscatedJar>("reobfShadowJar") {
archiveFileName.set("[forge-1.7.10]AllMusic_Client-${project.version}.jar")
destinationDirectory.set(file("${parent!!.projectDir}/../build"))
}
configurations.shadow.get().setExtendsFrom(listOf(configurations.named("shadowImplementation").get()))
build {
dependsOn(shadowJar)
dependsOn(reobfShadowJar)
}
}
+8 -4
View File
@@ -1,3 +1,5 @@
import com.gtnewhorizons.retrofuturagradle.mcp.ReobfuscatedJar
plugins {
id("com.gtnewhorizons.retrofuturagradle") version "2.0.2"
}
@@ -31,15 +33,17 @@ tasks {
shadowJar {
archiveFileName.set("[forge-1.12.2]AllMusic_Server-${project.version}.jar")
destinationDirectory.set(file("${parent!!.projectDir}/../build"))
relocate("net.kyori", "com.coloryr.allmusic.libs.net.kyori")
// relocate("com.google.gson", "com.coloryr.allmusic.libs.com.google.gson")
}
val reobfShadowJar = named<ReobfuscatedJar>("reobfShadowJar") {
archiveFileName.set("[forge-1.12.2]AllMusic_Server-${project.version}.jar")
destinationDirectory.set(file("${parent!!.projectDir}/../build"))
}
configurations.shadow.get().setExtendsFrom(listOf(configurations.named("shadowImplementation").get()))
build {
dependsOn(shadowJar)
dependsOn(reobfShadowJar)
}
}
+8 -3
View File
@@ -1,3 +1,5 @@
import com.gtnewhorizons.retrofuturagradle.mcp.ReobfuscatedJar
plugins {
id("com.gtnewhorizons.retrofuturagradle") version "2.0.2"
}
@@ -31,15 +33,18 @@ tasks {
shadowJar {
archiveFileName.set("[forge-1.7.10]AllMusic_Server-${project.version}.jar")
destinationDirectory.set(file("${parent!!.projectDir}/../build"))
relocate("net.kyori", "com.coloryr.allmusic.libs.net.kyori")
// relocate("com.google.gson", "com.coloryr.allmusic.libs.com.google.gson")
}
val reobfShadowJar = named<ReobfuscatedJar>("reobfShadowJar") {
archiveFileName.set("[forge-1.7.10]AllMusic_Server-${project.version}.jar")
destinationDirectory.set(file("${parent!!.projectDir}/../build"))
}
configurations.shadow.get().setExtendsFrom(listOf(configurations.named("shadowImplementation").get()))
build {
dependsOn(shadowJar)
dependsOn(reobfShadowJar)
}
}
+2
View File
@@ -63,11 +63,13 @@ include(":onejar")
include(":onejar:fabric_1_16_5")
include(":onejar:fabric_1_20_1")
include(":onejar:fabric_1_21")
include(":onejar:fabric_1_21_4")
include(":onejar:fabric_1_21_6")
include(":onejar:fabric_1_21_11")
include(":onejar:fabric_26_1")
include(":onejar:fabric_26_2")
include(":onejar:neoforge_1_21")
include(":onejar:neoforge_1_21_4")
include(":onejar:neoforge_1_21_6")
include(":onejar:neoforge_1_21_11")
include(":onejar:neoforge_26_1")