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:
parent
a155754c89
commit
709ae894c0
1 changed files with 18 additions and 6 deletions
24
build.gradle
24
build.gradle
|
@ -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 '.'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue