mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-14 01:14:01 +00:00
Implemented suggestion
This commit is contained in:
1 parent
4c37051951
commit
3a5a61f697
1 file changed
+30
-14
+30
-14
@@ -150,18 +150,26 @@ task generateAssets {
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
def manifestAttributes = [:]
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod" : true]
|
||||
|
||||
if(accessTransformersFile.isEmpty() == false) {
|
||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
||||
}
|
||||
|
||||
if(usesMixins.toBoolean()) {
|
||||
from refMap
|
||||
manifest {
|
||||
attributes([
|
||||
"FMLAT" : accessTransformersFile.toString(),
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : mixinConfigJson,
|
||||
"FMLCorePluginContainsFMLMod": true,
|
||||
"ForceLoadAsMod" : loadNormalModAfterApplingMixins.toBoolean()
|
||||
])
|
||||
manifestAttributes += [
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : mixinConfigJson,
|
||||
"ForceLoadAsMod" : loadNormalModAfterApplingMixins.toBoolean()
|
||||
]
|
||||
}
|
||||
}
|
||||
manifest {
|
||||
attributes(manifestAttributes)
|
||||
}
|
||||
|
||||
minimize()
|
||||
configurations = [project.configurations.shadowImplementation]
|
||||
@@ -169,18 +177,26 @@ shadowJar {
|
||||
}
|
||||
|
||||
jar {
|
||||
def manifestAttributes = [:]
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod" : true]
|
||||
|
||||
if(accessTransformersFile.isEmpty() == false) {
|
||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
||||
}
|
||||
|
||||
if(usesMixins.toBoolean()) {
|
||||
from refMap
|
||||
manifest {
|
||||
attributes([
|
||||
"FMLAT" : accessTransformersFile.toString(),
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : mixinConfigJson,
|
||||
"FMLCorePluginContainsFMLMod": true,
|
||||
"ForceLoadAsMod" : loadNormalModAfterApplingMixins.toBoolean()
|
||||
])
|
||||
manifestAttributes += [
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : mixinConfigJson,
|
||||
"ForceLoadAsMod" : loadNormalModAfterApplingMixins.toBoolean()
|
||||
]
|
||||
}
|
||||
}
|
||||
manifest {
|
||||
attributes(manifestAttributes)
|
||||
}
|
||||
|
||||
if(usesShadowedDependencies.toBoolean()) {
|
||||
dependsOn(shadowJar)
|
||||
|
||||
Reference in new issue
Block a user