Add test mods run configs
This commit is contained in:
parent
7c90d9f3e8
commit
605c4a0adf
1 changed files with 23 additions and 1 deletions
24
build.gradle
24
build.gradle
|
@ -131,7 +131,7 @@ project(':forge') {
|
||||||
compileClasspath += sourceSets.fmllauncher.runtimeClasspath
|
compileClasspath += sourceSets.fmllauncher.runtimeClasspath
|
||||||
runtimeClasspath += sourceSets.fmllauncher.runtimeClasspath
|
runtimeClasspath += sourceSets.fmllauncher.runtimeClasspath
|
||||||
java {
|
java {
|
||||||
// srcDir "$rootDir/src/test/java" TODO fix later
|
srcDir "$rootDir/src/test/java"
|
||||||
srcDir "$rootDir/src/fmllaunchertest/java"
|
srcDir "$rootDir/src/fmllaunchertest/java"
|
||||||
}
|
}
|
||||||
resources {
|
resources {
|
||||||
|
@ -210,6 +210,17 @@ project(':forge') {
|
||||||
property 'org.lwjgl.system.SharedLibraryExtractDirectory', 'lwjgl_dll'
|
property 'org.lwjgl.system.SharedLibraryExtractDirectory', 'lwjgl_dll'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
forge_test_client {
|
||||||
|
parent runs.forge_client
|
||||||
|
taskName 'forge_test_client'
|
||||||
|
|
||||||
|
environment 'MOD_CLASSES', 'dummy' // Needed to work around FG limitation, FG will replace this!
|
||||||
|
|
||||||
|
mods {
|
||||||
|
TestMods { sources sourceSets.test }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
forge_server {
|
forge_server {
|
||||||
taskName 'forge_server'
|
taskName 'forge_server'
|
||||||
|
|
||||||
|
@ -225,6 +236,17 @@ project(':forge') {
|
||||||
environment 'FORGE_VERSION', project.version.substring(MC_VERSION.length() + 1).toString()
|
environment 'FORGE_VERSION', project.version.substring(MC_VERSION.length() + 1).toString()
|
||||||
environment 'LAUNCHER_VERSION', SPEC_VERSION
|
environment 'LAUNCHER_VERSION', SPEC_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
forge_test_server {
|
||||||
|
parent runs.forge_server
|
||||||
|
taskName 'forge_test_server'
|
||||||
|
|
||||||
|
environment 'MOD_CLASSES', 'dummy' // Needed to work around FG limitation, FG will replace this!
|
||||||
|
|
||||||
|
mods {
|
||||||
|
TestMods { sources sourceSets.test }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue