diff options
author | nea <romangraef@gmail.com> | 2022-09-21 19:20:50 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-09-21 19:20:50 +0200 |
commit | 6d8cab61be2a053867de24b0af87d58d86472d5f (patch) | |
tree | 954b0f58dffea5bf14b5dd394a2caca159d3fcf2 /build.gradle | |
parent | dcf9b35ca749e10ea56c80bf6da63ba74b69ba55 (diff) | |
download | PerspectiveModv4-master.tar.gz PerspectiveModv4-master.tar.bz2 PerspectiveModv4-master.zip |
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 49 |
1 files changed, 25 insertions, 24 deletions
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")) + } |