aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle49
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"))
+ }