2013-12-26 16:16:28 +01: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'
|
|
|
|
|
|
|
|
ext.buildProps = file "build.properties"
|
|
|
|
|
|
|
|
buildProps.withReader {
|
|
|
|
def prop = new Properties()
|
|
|
|
prop.load(it)
|
|
|
|
ext.config = new ConfigSlurper().parse prop
|
|
|
|
}
|
|
|
|
|
2014-01-11 07:23:01 +01:00
|
|
|
sourceCompatability = 1.7
|
|
|
|
targetCompatability = 1.7
|
2013-12-26 16:16:28 +01:00
|
|
|
version = "${config.version.mod.major}.${config.version.mod.minor}.${config.version.mod.revis}"
|
2014-01-06 15:25:27 +01:00
|
|
|
group = "resonantinduction"
|
2014-01-05 10:47:35 +01:00
|
|
|
archivesBaseName = "Resonant-Induction"
|
2013-12-26 16:16:28 +01:00
|
|
|
|
|
|
|
minecraft {
|
|
|
|
version = "${config.version.minecraft}-${config.version.forge}"
|
2014-01-06 15:25:27 +01:00
|
|
|
|
|
|
|
replaceIn "ResonantInduction.java"
|
|
|
|
replace "@MAJOR@", config.version.mod.major
|
|
|
|
replace "@MINOR@", config.version.mod.minor
|
|
|
|
replace "@REVIS@", config.version.mod.revis
|
|
|
|
replace "@BUILD@", System.getenv("BUILD_NUMBER")
|
2013-12-26 16:16:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (System.getenv("BUILD_NUMBER") != null)
|
|
|
|
version += ".${System.getenv("BUILD_NUMBER")}"
|
|
|
|
|
|
|
|
|
2014-01-05 10:47:35 +01:00
|
|
|
processResources {
|
|
|
|
from 'build.properties'
|
|
|
|
}
|
|
|
|
|
2013-12-26 16:16:28 +01:00
|
|
|
task copyBuildXml(type: Copy) {
|
|
|
|
from 'build.properties'
|
|
|
|
into 'output'
|
|
|
|
}
|
|
|
|
|
2014-01-06 15:25:27 +01:00
|
|
|
task apiZip(type: Zip) {
|
|
|
|
classifier = 'api'
|
|
|
|
from sourceSets*.allSource
|
|
|
|
include 'resonantinduction/api/**'
|
|
|
|
destinationDir = file 'output'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives apiZip
|
|
|
|
}
|
|
|
|
|
2013-12-26 16:16:28 +01:00
|
|
|
jar {
|
|
|
|
dependsOn copyBuildXml
|
2014-01-05 10:47:35 +01:00
|
|
|
classifier = ''
|
2013-12-26 16:16:28 +01:00
|
|
|
destinationDir = file 'output'
|
|
|
|
}
|
|
|
|
|
2014-01-05 10:47:35 +01:00
|
|
|
repositories {
|
2014-01-07 13:52:29 +01:00
|
|
|
maven { url 'file://var/www/maven/' }
|
2014-01-06 16:11:56 +01:00
|
|
|
|
|
|
|
ivy {
|
|
|
|
name 'CB FS'
|
|
|
|
artifactPattern "http://files.minecraftforge.net/[module]/[module]-dev-[revision].[ext]"
|
|
|
|
}
|
2013-12-26 16:16:28 +01:00
|
|
|
}
|
2014-01-05 10:47:35 +01:00
|
|
|
dependencies {
|
2014-01-07 13:52:29 +01:00
|
|
|
compile 'universalelectricity:Universal-Electricity:3.0.+:dev'
|
|
|
|
compile 'calclaviacore:calclavia-core:1.1.+:dev'
|
2014-01-06 16:11:56 +01:00
|
|
|
compile name: 'CodeChickenLib', version: "1.6.4-1.0.0.49", ext: 'jar'
|
|
|
|
compile name: 'ForgeMultipart', version: "1.6.4-1.0.0.233", ext: 'jar'
|
2013-12-26 16:16:28 +01:00
|
|
|
}
|