Get rid of bloat from buildscript template

This commit is contained in:
makamys committed 2023-10-19 10:04:04 +02:00
1 parent 3a09260a99
commit 108893429f
2 files changed
-62

No files matched your search

-54
View File
@@ -1,54 +0,0 @@
/** Applying this file in a Forge build will imbue it with the powers of Mixin. */
repositories {
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven/'
}
}
def embedMixin = !project.hasProperty("nomixin");
if(!embedMixin){
project.version += "+nomixin"
}
dependencies {
if(embedMixin){
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT'){
setTransitive false
}
} else {
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT'){
setTransitive false
}
}
}
ext.outRefMapFile = "${tasks.compileJava.temporaryDir}/${project.modid}.mixin.refmap.json"
jar {
manifest {
attributes (
'MixinConfigs': "${project.modid}.mixin.json",
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
'TweakOrder': 0,
// If these two are not set, Forge will not detect the mod, it will only run the mixins
'FMLCorePluginContainsFMLMod': 'true',
'ForceLoadAsMod': 'true',
)
}
from outRefMapFile;
}
def outSrgFile = "${tasks.compileJava.temporaryDir}/outSrg.srg"
afterEvaluate {
tasks.compileJava.options.compilerArgs += ["-AreobfSrgFile=${tasks.reobf.srg}", "-AoutSrgFile=${outSrgFile}", "-AoutRefMapFile=${outRefMapFile}"];
}
reobf {
addExtraSrgFile outSrgFile
}
-8
View File
@@ -51,14 +51,6 @@ minecraft {
mcVersion.set("1.7.10")
}
if(project.enable_mixin.toBoolean()) {
apply from: "buildscript/forge-1.7-mixin.gradle"
}
if(file("project.gradle").exists()){
apply from: "project.gradle"
}
processResources {
// This will ensure that this task is redone when the versions or any
// user-defined properties change.