2013-12-17 03:35:59 -05:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'forge'
|
|
|
|
|
2014-07-02 13:59:55 -04:00
|
|
|
version = "2.2.4-" + System.getenv("BUILD_NUMBER")
|
2014-07-09 04:01:37 -04:00
|
|
|
group = "com.stevenrs11.dimdoors" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
2013-12-26 00:02:35 -06:00
|
|
|
archivesBaseName = "DimensionalDoors"
|
2013-12-17 03:35:59 -05:00
|
|
|
|
|
|
|
minecraft {
|
2014-07-09 15:11:16 -04:00
|
|
|
version = "1.6.4-9.11.1.964"
|
|
|
|
|
|
|
|
replaceIn "mod_pocketDim.java"
|
|
|
|
replace "@VERSION@", project.version
|
2013-12-17 03:35:59 -05:00
|
|
|
}
|
|
|
|
|
2013-12-22 17:19:06 -06:00
|
|
|
targetCompatibility = '1.6'
|
|
|
|
sourceCompatibility = '1.6'
|
2013-12-17 19:09:53 -05:00
|
|
|
|
2013-12-17 03:35:59 -05:00
|
|
|
processResources
|
|
|
|
{
|
2014-07-09 15:11:16 -04:00
|
|
|
// Replace stuff $version and $mcversion in mcmod.info
|
2013-12-17 03:35:59 -05:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
2013-12-26 00:13:25 -06:00
|
|
|
include 'mcmod.info'
|
2014-07-09 15:11:16 -04:00
|
|
|
|
2014-07-09 04:01:37 -04:00
|
|
|
// Replace version and mcversion
|
2013-12-17 03:35:59 -05:00
|
|
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
|
|
|
}
|
|
|
|
|
2014-07-09 04:01:37 -04:00
|
|
|
// Copy everything else
|
2013-12-17 03:35:59 -05:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
2013-12-26 00:13:25 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
jar
|
|
|
|
{
|
|
|
|
destinationDir = new File("build/dist/")
|
|
|
|
}
|