electrodynamics/build.gradle

60 lines
1.2 KiB
Groovy
Raw Normal View History

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
}
version = "${config.version.mod.major}.${config.version.mod.minor}.${config.version.mod.revis}"
2014-01-05 10:47:35 +01:00
group = "resonant-induction"
archivesBaseName = "Resonant-Induction"
2013-12-26 16:16:28 +01:00
minecraft {
version = "${config.version.minecraft}-${config.version.forge}"
}
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'
}
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
include('resonantinduction/**')
2013-12-26 16:16:28 +01:00
}
2014-01-05 10:47:35 +01:00
repositories {
maven { url 'http://calclavia.com/maven/' }
2013-12-26 16:16:28 +01:00
}
2014-01-05 10:47:35 +01:00
dependencies {
compile 'universalelectricity:Universal-Electricity:3.0.0.258:dev'
compile 'calclaviacore:calclavia-core:1.0.0.44:dev'
2013-12-26 16:16:28 +01:00
}