Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,33 @@ buildscript {
}
}

// setup plugins to use
plugins {
id 'de.fuerstenau.buildconfig' version '1.1.8'
id 'idea'
id 'net.minecraftforge.gradle.forge' version '2.0.2'
}

// setup external properties file
ext.configFile = file "build.properties"

// read external properties file
configFile.withReader {
def prop = new Properties()
prop.load(it)
project.ext.config = new ConfigSlurper().parse prop
}

// set default version, group and package namespace
version = config.mc_version + '-' + config.mod_version
group = config.mod_group
archivesBaseName = config.mod_name

// if we are building from pipeline, then add build number to the version
if (System.getenv().BUILD_NUMBER)
version = "${version}.${System.getenv().BUILD_NUMBER}"

// if we are not building with a key, add this to the version
if (!project.hasProperty('signingKeystore')) {
project.properties.put('signingFingerprint', 'unsigned')
version = version + '-unsigned'
Expand All @@ -44,13 +50,8 @@ minecraft {
version = "${config.mc_version}-${config.forge_version}"
runDir = "run"

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20170624"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
mappings = 'stable_39'
makeObfSourceJar = false
}

dependencies {
Expand Down