@@ -8,27 +8,33 @@ buildscript {
88 }
99}
1010
11+ // setup plugins to use
1112plugins {
1213 id ' de.fuerstenau.buildconfig' version ' 1.1.8'
1314 id ' idea'
1415 id ' net.minecraftforge.gradle.forge' version ' 2.0.2'
1516}
1617
18+ // setup external properties file
1719ext. configFile = file " build.properties"
1820
21+ // read external properties file
1922configFile. withReader {
2023 def prop = new Properties ()
2124 prop. load(it)
2225 project. ext. config = new ConfigSlurper (). parse prop
2326}
2427
28+ // set default version, group and package namespace
2529version = config. mc_version + ' -' + config. mod_version
2630group = config. mod_group
2731archivesBaseName = config. mod_name
2832
33+ // if we are building from pipeline, then add build number to the version
2934if (System . getenv(). BUILD_NUMBER )
3035 version = " ${ version} .${ System.getenv().BUILD_NUMBER} "
3136
37+ // if we are not building with a key, add this to the version
3238if (! project. hasProperty(' signingKeystore' )) {
3339 project. properties. put(' signingFingerprint' , ' unsigned' )
3440 version = version + ' -unsigned'
@@ -44,13 +50,8 @@ minecraft {
4450 version = " ${ config.mc_version} -${ config.forge_version} "
4551 runDir = " run"
4652
47- // the mappings can be changed at any time, and must be in the following format.
48- // snapshot_YYYYMMDD snapshot are built nightly.
49- // stable_# stables are built at the discretion of the MCP team.
50- // Use non-default mappings at your own risk. they may not always work.
51- // simply re-run your setup task after changing the mappings to update your workspace.
52- mappings = " snapshot_20170624"
53- // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
53+ mappings = ' stable_39'
54+ makeObfSourceJar = false
5455}
5556
5657dependencies {
0 commit comments