2015-12-17 11:13:44 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2019-01-07 06:13:56 +00:00
|
|
|
mavenLocal()
|
|
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
2015-12-17 11:13:44 +00:00
|
|
|
jcenter()
|
2019-01-07 06:13:56 +00:00
|
|
|
mavenCentral()
|
2015-12-17 11:13:44 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-01-09 01:33:02 +00:00
|
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
2015-12-17 11:13:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-07 06:13:56 +00:00
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
|
|
apply plugin: 'eclipse'
|
2019-01-07 08:35:58 +00:00
|
|
|
apply plugin: 'idea'
|
2015-12-17 11:17:18 +00:00
|
|
|
|
2014-10-04 14:37:48 +00:00
|
|
|
// define the properties file
|
|
|
|
ext.configFile = file "build.properties"
|
|
|
|
|
|
|
|
configFile.withReader {
|
|
|
|
// read config. it shall from now on be referenced as simply config or as project.config
|
|
|
|
def prop = new Properties()
|
|
|
|
prop.load(it)
|
|
|
|
project.ext.config = new ConfigSlurper().parse prop
|
|
|
|
}
|
|
|
|
|
2014-10-05 01:07:24 +00:00
|
|
|
group = "com.github.glitchfiend.biomesoplenty"
|
2015-06-19 09:58:24 +00:00
|
|
|
archivesBaseName = "BiomesOPlenty"
|
2014-10-04 14:37:48 +00:00
|
|
|
|
2016-03-28 23:52:57 +00:00
|
|
|
// add some stuff to the version
|
|
|
|
version = "${config.minecraft_version}-${config.mod_version}.${System.getenv().BUILD_NUMBER}"
|
|
|
|
config.build_number = (System.getenv().BUILD_NUMBER) ? System.getenv().BUILD_NUMBER : ""
|
|
|
|
|
2014-10-04 14:37:48 +00:00
|
|
|
minecraft {
|
2019-01-07 06:13:56 +00:00
|
|
|
mappings channel: 'snapshot', version: config.mappings_version
|
|
|
|
|
2019-01-11 00:37:54 +00:00
|
|
|
accessTransformer = file('src/main/resources/META-INF/biomesoplenty_at.cfg')
|
|
|
|
|
2019-01-09 01:33:02 +00:00
|
|
|
runs {
|
|
|
|
client = {
|
|
|
|
workingDirectory = project.file("run").canonicalPath
|
2019-01-11 05:48:53 +00:00
|
|
|
source sourceSets.main
|
2019-01-09 01:33:02 +00:00
|
|
|
}
|
|
|
|
server = {
|
|
|
|
workingDirectory = project.file("run").canonicalPath
|
2019-01-11 05:48:53 +00:00
|
|
|
source sourceSets.main
|
2019-01-09 01:33:02 +00:00
|
|
|
}
|
2019-01-07 06:13:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-01-09 01:33:02 +00:00
|
|
|
minecraft 'net.minecraftforge.test:forge:' + config.minecraft_version + '-' + config.forge_version
|
2019-01-11 05:48:53 +00:00
|
|
|
}
|