Skip to content

Commit bc13210

Browse files
committed
chore(gradle): option to test TestClient earlier
1 parent cb92c41 commit bc13210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val deployedPlayer by extra { "simpleclient-$gameName-$version.jar" }
3333
val testingDir by extra { buildDir.resolve("tests") }
3434
val documentedProjects = listOf("sdk", "plugin")
3535

36-
val enableTestClient by extra { versionObject.minor > 0 }
36+
val enableTestClient by extra { arrayOf("check", "testTestClient").any { gradle.startParameter.taskNames.contains(it) } || versionObject.minor > 0 }
3737
val enableIntegrationTesting = !project.hasProperty("nointegration") && (versionObject.minor > 0 || enableTestClient)
3838

3939
val doAfterEvaluate = ArrayList<(Project) -> Unit>()

0 commit comments

Comments
 (0)