Fg 1.2.7 (#13)

* Upd build.gradle to FG 1.2.6 & added mixins debug props

* Upd build.gradle to FG 1.2.7
This commit is contained in:
Andrey authored and GitHub committed 2022-01-27 08:31:49 +01:00
1 parent f755499edf
commit a7ceaf2a3a
1 file changed
+32 -12
+32 -12
View File
@@ -32,7 +32,7 @@ buildscript {
}
}
dependencies {
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.6'
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.7'
}
}
@@ -174,6 +174,19 @@ else {
archivesBaseName = modId
}
def arguments = []
def jvmArguments = []
if(usesMixins.toBoolean()) {
arguments += [
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
]
jvmArguments += [
"-Dmixin.debug.countInjections=true", "-Dmixin.debug.verbose=true", "-Dmixin.debug.export=true"
]
}
minecraft {
version = minecraftVersion + "-" + forgeVersion + "-" + minecraftVersion
runDir = "run"
@@ -193,6 +206,20 @@ minecraft {
replace gradleTokenGroupName, modGroup
}
}
clientIntellijRun {
args(arguments)
jvmArgs(jvmArguments)
if(developmentEnvironmentUserName) {
args("--username", developmentEnvironmentUserName)
}
}
serverIntellijRun {
args(arguments)
jvmArgs(jvmArguments)
}
}
if(file("addon.gradle").exists()) {
@@ -322,20 +349,13 @@ afterEvaluate {
}
}
}
def arguments = []
def jvmArguments = []
if(usesMixins.toBoolean()) {
arguments += [
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
]
jvmArguments += [
"-Dmixin.debug=true", "-Dmixin.debug.countInjections=true", "-Dmixin.debug.verbose=true", "-Dmixin.debug.export=true"
]
}
runClient {
if(developmentEnvironmentUserName) {
arguments += [ "--username", developmentEnvironmentUserName ]
arguments += [
"--username",
developmentEnvironmentUserName
]
}
args(arguments)