From 6d8cab61be2a053867de24b0af87d58d86472d5f Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 21 Sep 2022 19:20:50 +0200 Subject: Reenable build jars --- build.gradle | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index e4866a7..5c9b585 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { id 'com.github.johnrengelman.shadow' version '7.1.2' } -group= "me.djtheredstoner" +group = "me.djtheredstoner" sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 @@ -48,7 +48,7 @@ dependencies { minecraft 'com.mojang:minecraft:1.8.9' mappings 'de.oceanlabs.mcp:mcp_stable:22-1.8.9' forge 'net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9' - + embed "gg.essential:loader-launchwrapper:1.1.3" @@ -56,11 +56,11 @@ dependencies { } jar { - enabled = false + archiveClassifier.set("deobf") } shadowJar { - archiveClassifier.set("") + archiveClassifier.set("shadow") duplicatesStrategy = DuplicatesStrategy.EXCLUDE @@ -76,28 +76,29 @@ shadowJar { } remapJar { + archiveClassifier.set("") from shadowJar - input = shadowJar.archiveFile + input.set(shadowJar.archiveFile) } processResources -{ - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - // this will ensure that this task is redone when the versions change. - inputs.property "version", project.version - - // replace stuff in mcmod.info, nothing else - from(sourceSets.main.resources.srcDirs) { - include 'mcmod.info' - - // replace version and mcversion - expand 'version':project.version - } - - // copy everything else, thats not the mcmod.info - from(sourceSets.main.resources.srcDirs) { - exclude 'mcmod.info' - } + { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + // this will ensure that this task is redone when the versions change. + inputs.property "version", project.version - from(file("LICENSE")) -} + // replace stuff in mcmod.info, nothing else + from(sourceSets.main.resources.srcDirs) { + include 'mcmod.info' + + // replace version and mcversion + expand 'version': project.version + } + + // copy everything else, thats not the mcmod.info + from(sourceSets.main.resources.srcDirs) { + exclude 'mcmod.info' + } + + from(file("LICENSE")) + } -- cgit