File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
buildSrc/src/main/kotlin/cc/tweaked/gradle Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -184,15 +184,6 @@ minecraft {
184184 }
185185 }
186186
187- // internal run config to automatically run the client-side gametests with the runGameTestClient task
188- runGameTestClientInternal {
189- parent runs. testClient
190-
191- lazyToken(" minecraft_classpath" , lazyTokens[" minecraft_classpath" ])
192-
193- property ' advancedperipheralstest.tags' , ' client'
194- }
195-
196187 gameTestServer {
197188 def oldClasspath = lazyTokens[" minecraft_classpath" ]
198189 lazyToken(" minecraft_classpath" ) {
@@ -677,6 +668,9 @@ publishing {
677668}
678669
679670tasks. register(' runGameTestClient' , ClientJavaExec , { task ->
671+ task. outputs. upToDateWhen { false }
672+
680673 description " Runs client-side gametests with no mods"
681- setRunConfig(minecraft. runs. runGameTestClientInternal)
674+ setRunConfig(minecraft. runs. testClient)
675+ tags(" client" )
682676})
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import org.gradle.api.services.BuildServiceParameters
1414import org.gradle.api.tasks.*
1515import org.gradle.kotlin.dsl.getByName
1616import org.gradle.language.base.plugins.LifecycleBasePlugin
17+ import org.gradle.process.CommandLineArgumentProvider
1718import java.io.File
1819import java.nio.file.Files
1920import java.util.concurrent.TimeUnit
@@ -91,7 +92,11 @@ abstract class ClientJavaExec : JavaExec() {
9192 * Only run tests with the given tags.
9293 */
9394 fun tags (vararg tags : String ) {
94- systemProperty(" advancedperipheralstest.tags" , tags.joinToString(" ," ))
95+ jvmArgumentProviders.add(
96+ CommandLineArgumentProvider {
97+ listOf (" -Dadvancedperipheralstest.tags=${tags.joinToString(" ," )} " )
98+ }
99+ )
95100 }
96101
97102 /* *
You can’t perform that action at this time.
0 commit comments