Make gradle put jars in the same places as ant and put together MDK zips, and version them properly. It also reobfuscates JItemMultipart subclasses properly if that's what you were fighting with, @aidancbrady.

This commit is contained in:
Ben Spiers 2014-01-04 20:47:40 +00:00
parent a155754c89
commit 709ae894c0

View file

@ -1,4 +1,4 @@
defaultTasks 'build', 'releaseJars'
defaultTasks 'releaseJars'
buildscript {
repositories {
mavenCentral()
@ -25,8 +25,10 @@ dependencies {
compile ':forgemultipart:1.0.0.228'
}
version = "6.0.0"
version = "6.0.0." + "$System.env.BUILD_NUMBER"
archivesBaseName = "MekanismAll"
libsDirName = "../output"
distsDirName = "../output"
minecraft {
version = "1.6.4-9.11.1.964"
@ -90,8 +92,18 @@ task generatorsJar(type: Jar) {
}
}
task releaseJars {
dependsOn 'coreJar'
dependsOn 'toolsJar'
dependsOn 'generatorsJar'
task MDKZip(type: Zip) {
baseName = 'MDK'
from 'common/'
include 'mekanism/api/**'
}
task releaseJars(type: Copy) {
from coreJar
from toolsJar
from generatorsJar
from MDKZip
rename '-(.*)jar', '.jar'
rename '-(.*)zip', '.zip'
into '.'
}