summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2015-05-07 13:34:21 +0100
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2015-05-07 13:34:21 +0100
commitc5e04f2c8e0c5393d9a5ef63a87ae4f0094af301 (patch)
tree170a49181f336842c82cf6e12f63f7e4b8e2cad1 /build.gradle
parent208b1f1e0d5faf601b53818b04f6699b2e6cb6bc (diff)
- Added EE3 EMC values, thank you to MineMarteen for providing the ThirdPartyManager code :)
- Working on making it possible to translate every part of the mod - Created an interface modders can use to make an item wearable in the jewelry inventory and have special effects
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle49
1 files changed, 43 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index 955ba50..64c8c13 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,21 +15,43 @@ buildscript {
}
}
+apply plugin: "curseforge"
apply plugin: 'forge'
-project.ext.buildnumber = "undefined"
-if (System.getenv().BUILD_NUMBER) project.buildnumber = System.getenv().BUILD_NUMBER
+project.ext {
+ massive = "1"
+ major = "0"
+ minor = "9"
+ mcVersion = "1.7.10"
+}
+
+if (System.getenv().BUILD_NUMBER != null) {
+ version += "-${System.getenv().BUILD_NUMBER}"
+} else {
+ version += "-err"
+}
-version = "1.7.10-build-" + project.buildnumber
+version = "${project.ext.massive}.${project.ext.major}.${project.minor}"
group= "darkknight.jewelrycraft2"
archivesBaseName = "Jewelrycraft2"
-sourceCompatibility = JavaVersion.VERSION_1_7
-targetCompatibility = JavaVersion.VERSION_1_7
+sourceCompatibility = JavaVersion.VERSION_1_8
+targetCompatibility = JavaVersion.VERSION_1_8
minecraft {
version = "1.7.10-10.13.3.1395-1710ls"
- assetDir = "eclipse/assets"
+ assetDir = "minecraft/assets"
+
+ // replacing stuff in the source
+ replace '@MASSIVE@', project.massive
+ replace '@MAJOR@', project.major
+ replace '@MINOR@', project.minor
+ replace '@MC_VERSION@', version
+ if (System.getenv("BUILD_NUMBER") != null) {
+ replace '@BUILD_NUMBER@', System.getenv("BUILD_NUMBER")
+ } else {
+ replace '@BUILD_NUMBER@', 0
+ }
}
processResources{
@@ -47,6 +69,20 @@ processResources{
}
}
+curse {
+ apiKey = System.getenv("onyxdarkknight_curse")
+ projectId = "229927" // my project url is http://minecraft.curseforge.com/mc-mods/229927-jewelrycraft-2
+ changelog = new File('changelog.txt').text
+ releaseType = "release"
+
+ // the default obfuscated jar is uploaded by default
+ // artifact = project.file("some/jar/to/upload.jar")
+
+ // allows you to add extra compatible MC versions. The one specified in the minecraft{} block is used by default.
+ // addGameVersion "1.7.1"
+ // addGameversion "1.7.0", "1.7.4"
+}
+
sourceSets {
main {
output.resourcesDir = output.classesDir
@@ -60,6 +96,7 @@ sourceSets {
}
jar {
+ appendix = "${project.ext.mcVersion}"
classifier = 'universal'
}