Explicitly call toBoolean when evaluating Boolean properties
This commit is contained in:
parent
a6e27f7842
commit
dfaf6d5d34
2 changed files with 10 additions and 8 deletions
16
build.gradle
16
build.gradle
|
@ -9,7 +9,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
||||||
if (project.use_mixins) {
|
if (project.use_mixins.toBoolean()) {
|
||||||
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ buildscript {
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
|
|
||||||
if (project.use_mixins) {
|
if (project.use_mixins.toBoolean()) {
|
||||||
apply plugin: 'org.spongepowered.mixin'
|
apply plugin: 'org.spongepowered.mixin'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,10 +41,10 @@ minecraft {
|
||||||
runDir = 'run'
|
runDir = 'run'
|
||||||
mappings = 'stable_39'
|
mappings = 'stable_39'
|
||||||
def args = []
|
def args = []
|
||||||
if (project.use_coremod) {
|
if (project.use_coremod.toBoolean()) {
|
||||||
args << '-Dfml.coreMods.load=' + coremod_plugin_class_name
|
args << '-Dfml.coreMods.load=' + coremod_plugin_class_name
|
||||||
}
|
}
|
||||||
if (project.use_mixins) {
|
if (project.use_mixins.toBoolean()) {
|
||||||
args << '-Dmixin.hotSwap=true'
|
args << '-Dmixin.hotSwap=true'
|
||||||
args << '-Dmixin.checks.interfaces=true'
|
args << '-Dmixin.checks.interfaces=true'
|
||||||
args << '-Dmixin.debug.export=true'
|
args << '-Dmixin.debug.export=true'
|
||||||
|
@ -64,10 +64,10 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
if (project.use_assetmover) {
|
if (project.use_assetmover.toBoolean()) {
|
||||||
deobfCompile 'com.cleanroommc:assetmover:0.2'
|
deobfCompile 'com.cleanroommc:assetmover:0.2'
|
||||||
}
|
}
|
||||||
if (project.use_mixins) {
|
if (project.use_mixins.toBoolean()) {
|
||||||
deobfCompile 'zone.rong:mixinbooter:4.2'
|
deobfCompile 'zone.rong:mixinbooter:4.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,10 +101,10 @@ processResources {
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
def attribute_map = [:]
|
def attribute_map = [:]
|
||||||
if (project.use_coremod) {
|
if (project.use_coremod.toBoolean()) {
|
||||||
attribute_map['FMLCorePlugin'] = project.coremod_plugin_class_name
|
attribute_map['FMLCorePlugin'] = project.coremod_plugin_class_name
|
||||||
}
|
}
|
||||||
if (project.use_mixins) {
|
if (project.use_mixins.toBoolean()) {
|
||||||
attribute_map['TweakClass'] = 'org.spongepowered.asm.launch.MixinTweaker'
|
attribute_map['TweakClass'] = 'org.spongepowered.asm.launch.MixinTweaker'
|
||||||
}
|
}
|
||||||
attributes(attribute_map)
|
attributes(attribute_map)
|
||||||
|
|
|
@ -7,6 +7,8 @@ mod_version = 1.0
|
||||||
maven_group = com.cleanroommc
|
maven_group = com.cleanroommc
|
||||||
archives_base_name = modid
|
archives_base_name = modid
|
||||||
|
|
||||||
|
# If any properties changes below this line, run `gradlew setupDecompWorkspace` and refresh gradle again to ensure everything is working correctly.
|
||||||
|
|
||||||
# Boilerplate Options
|
# Boilerplate Options
|
||||||
use_mixins = false
|
use_mixins = false
|
||||||
use_coremod = false
|
use_coremod = false
|
||||||
|
|
Loading…
Reference in a new issue