Port All module (not the same thing)

This commit is contained in:
makamys committed 2023-10-19 09:49:47 +02:00
1 parent 80e07234f5
commit 28e98d501f
9 files changed
+14 -25

No files matched your search

+6 -4
View File
@@ -6,8 +6,8 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-all-1.7.10")
ext.moduleNames = ["module-mixin", "module-compat", "module-mixingasm", "module-spongemixins", "module-mixinbooterlegacy", "module-gasstation", "module-gtnhmixins", "module-mixinextras"]
def getModuleJar(name, source = false) {
def jarTaskName = name == "module-mixin" ? ":module-mixin:shadow${source ? 'Sources' : ''}JarUnimix" : ":$name:${source ? 'sourcesJar' : 'devJar'}"
def jarTaskName = name == "module-mixin" ? ":module-mixin:shadow${source ? 'Sources' : ''}JarUnimix" : ":$name:${source ? 'sourcesJar' : 'jar'}"
return tasks.getByPath(jarTaskName).getOutputs().getFiles().getSingleFile()
}
@@ -97,7 +97,7 @@ shadowJar {
dependsOn tasks.createMergedAnnotationProcessorConfig
configurations = [project.configurations.shadow]
classifier = ''
archiveClassifier = 'dev'
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.all.repackage.common'
moduleNames.each {
@@ -154,7 +154,7 @@ jar {
task sourcesJar(type: ShadowJar) {
dependsOn shadowJar
classifier = 'sources'
archiveClassifier = 'sources'
moduleNames.each {
def j = getModuleJar(it, true)
@@ -172,6 +172,8 @@ task sourcesJar(type: ShadowJar) {
}
}
jar.dependsOn sourcesJar
clean {
moduleNames.each { dependsOn tasks.getByPath(":$it:clean") }
}
+1 -3
View File
@@ -7,7 +7,7 @@ dependencies {
archivesBaseName = archivesBaseName.replace("-1.7.10", "-devcompat-1.7.10")
jar {
archiveClassifier = ''
archiveClassifier = 'dev'
manifest {
attributes (
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
@@ -21,5 +21,3 @@ jar {
tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.devcompat.Tags")
}
reobfJar.enabled = false
+1 -3
View File
@@ -12,7 +12,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-gasstation-1.7.10")
shadowJar {
configurations = [project.configurations.shadow]
archiveClassifier = ''
archiveClassifier = 'dev'
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.gasstation.repackage.common'
manifest {
@@ -31,8 +31,6 @@ jar {
dependsOn shadowJar
}
reobfJar.enabled = false
ext.uniVersion = version
ext.mcversion = "1.7.10"
version += "+" + ext.extraVersion
+1 -3
View File
@@ -12,7 +12,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-gtnhmixins-1.7.10")
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
archiveClassifier = ''
archiveClassifier = 'dev'
configurations = [project.configurations.shadow]
relocate 'org.objectweb.asm', 'org.spongepowered.asm.lib'
@@ -34,8 +34,6 @@ jar {
enabled = false
}
reobfJar.enabled = false
ext.uniVersion = version
ext.extraModid = "gtnhmixins"
ext.mcversion = "1.7.10"
+1 -3
View File
@@ -22,7 +22,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-mixinbooterlegacy-1.7.1
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
archiveClassifier = ''
archiveClassifier = 'dev'
configurations = [project.configurations.shadow]
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.mixinbooterlegacy.repackage.common'
@@ -42,8 +42,6 @@ jar {
enabled = false
}
reobfJar.enabled = false
ext.uniVersion = version
ext.mcversion = "1.7.10"
version += "+" + extraVersion
+1 -3
View File
@@ -17,7 +17,7 @@ version += "+${extraVersion}"
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
archiveClassifier = ''
archiveClassifier = 'dev'
configurations = [project.configurations.shadow]
relocate 'org.objectweb.asm', 'org.spongepowered.asm.lib'
@@ -37,8 +37,6 @@ jar {
dependsOn shadowJar
}
reobfJar.enabled = false
tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.mixinextras.Tags")
}
+1 -3
View File
@@ -12,7 +12,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-mixingasm-1.7.10")
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
archiveClassifier = ''
archiveClassifier = 'dev'
configurations = [project.configurations.shadow]
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.mixingasm.repackage.common'
@@ -33,8 +33,6 @@ jar {
enabled = false
}
reobfJar.enabled = false
ext.uniVersion = version
version += "+" + ext.extraVersion
+1 -2
View File
@@ -7,7 +7,7 @@ dependencies {
archivesBaseName = archivesBaseName.replace("-1.7.10", "-spongemixins-1.7.10")
shadowJar {
archiveClassifier = ''
archiveClassifier = 'dev'
configurations = []
relocate 'com.gtnewhorizon', 'ru.timeconqueror.spongemixins.repackage.com.gtnewhorizon'
manifest {
@@ -23,6 +23,5 @@ ext.uniVersion = version
ext.mcversion = "1.7.10"
version += "+gtnh." + ext.extraVersion
reobfJar.enabled = false
jar.dependsOn shadowJar
jar.enabled = false
+1 -1
View File
@@ -25,5 +25,5 @@ include 'module-mixinbooterlegacy'
include 'module-gasstation'
include 'module-gtnhmixins'
include 'module-mixinextras'
// include 'module-all'
include 'module-all'
include 'module-common'