Add test mods run configs

This commit is contained in:
tterrag 2019-05-11 15:41:20 -04:00
parent 7c90d9f3e8
commit 605c4a0adf
1 changed files with 23 additions and 1 deletions

View File

@ -131,7 +131,7 @@ project(':forge') {
compileClasspath += sourceSets.fmllauncher.runtimeClasspath
runtimeClasspath += sourceSets.fmllauncher.runtimeClasspath
java {
// srcDir "$rootDir/src/test/java" TODO fix later
srcDir "$rootDir/src/test/java"
srcDir "$rootDir/src/fmllaunchertest/java"
}
resources {
@ -210,6 +210,17 @@ project(':forge') {
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 {
taskName 'forge_server'
@ -225,6 +236,17 @@ project(':forge') {
environment 'FORGE_VERSION', project.version.substring(MC_VERSION.length() + 1).toString()
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 }
}
}
}
}