summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGiovanni Harting <539@idlegandalf.com>2016-05-04 00:48:23 +0200
committerGiovanni Harting <539@idlegandalf.com>2016-05-04 00:48:23 +0200
commit48757b296817721602eae7e5b1d0bf5998c8f9cc (patch)
tree11f69b0a5526628704fc4e0f6de0034de26d07df /build.gradle
parent2bae1ec21c2aa43a24ea6ba9997ace71edb1978c (diff)
moved version to gradle
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle34
1 files changed, 18 insertions, 16 deletions
diff --git a/build.gradle b/build.gradle
index 2b21f1f..0e2f5b2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -42,6 +42,8 @@ minecraft {
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20160428"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
+
+ replace "@VERSION@", project.version
}
dependencies {
@@ -53,22 +55,22 @@ dependencies {
// compile "tconstruct:TConstruct:1.9-2.2.2.jenkins159:deobf"
}
-processResources
- {
- // this will ensure that this task is redone when the versions change.
- inputs.property "version", project.version
- inputs.property "mcversion", project.minecraft.version
+//noinspection GroovyAssignabilityCheck
+processResources {
+ // this will ensure that this task is redone when the versions change.
+ inputs.property "version", project.version
+ inputs.property "mcversion", project.minecraft.version
- // replace stuff in mcmod.info, nothing else
- from(sourceSets.main.resources.srcDirs) {
- include 'mcmod.info'
+ // replace stuff in mcmod.info, nothing else
+ from(sourceSets.main.resources.srcDirs) {
+ include 'mcmod.info'
- // replace version and mcversion
- expand 'version': project.version, 'mcversion': project.minecraft.version
- }
+ // replace version and mcversion
+ expand 'version': project.version, 'mcversion': project.minecraft.version
+ }
- // copy everything else, thats not the mcmod.info
- from(sourceSets.main.resources.srcDirs) {
- exclude 'mcmod.info'
- }
- }
+ // copy everything else, thats not the mcmod.info
+ from(sourceSets.main.resources.srcDirs) {
+ exclude 'mcmod.info'
+ }
+}