Skip to content

Commit 4a7cb86

Browse files
authored
Merge pull request #50 from Matts/mapping_change-1.12
Change mapping to stable_39
2 parents 559c241 + 27c1126 commit 4a7cb86

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,33 @@ buildscript {
88
}
99
}
1010

11+
// setup plugins to use
1112
plugins {
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
1719
ext.configFile = file "build.properties"
1820

21+
// read external properties file
1922
configFile.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
2529
version = config.mc_version + '-' + config.mod_version
2630
group = config.mod_group
2731
archivesBaseName = config.mod_name
2832

33+
// if we are building from pipeline, then add build number to the version
2934
if (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
3238
if (!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

5657
dependencies {

0 commit comments

Comments
 (0)