BiomesOPlenty/build.gradle

53 lines
1.6 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
mavenLocal()
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
2019-01-09 01:33:02 +00:00
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
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
// 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 {
mappings channel: 'snapshot', version: config.mappings_version
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
source sourceSets.main
2019-01-09 01:33:02 +00:00
}
server = {
workingDirectory = project.file("run").canonicalPath
source sourceSets.main
2019-01-09 01:33:02 +00:00
}
}
}
dependencies {
2019-01-09 01:33:02 +00:00
minecraft 'net.minecraftforge.test:forge:' + config.minecraft_version + '-' + config.forge_version
}