Build: Introduce limitTestTasksConcurrency build property

Is true by default. It can be used to disable the concurrency limit for
test tasks
This commit is contained in:
Vyacheslav Gerasimov
2024-03-06 21:51:16 +01:00
committed by Space Team
parent 6740a596c7
commit 0a60f2924f
2 changed files with 6 additions and 1 deletions
@@ -62,3 +62,6 @@ val KotlinBuildProperties.useFirTightIC: Boolean
val KotlinBuildProperties.isSwiftExportPluginPublishingEnabled: Boolean
get() = getBoolean("kotlin.native.swift-export.enabled", false)
val KotlinBuildProperties.limitTestTasksConcurrency: Boolean
get() = getBoolean("kotlin.build.limitTestTasksConcurrency", true)
@@ -286,7 +286,9 @@ fun Project.configureTests() {
tasks.withType<Test>().configureEach {
outputs.doNotCacheIf("https://youtrack.jetbrains.com/issue/KTI-112") { true }
usesService(concurrencyLimitService)
if (project.kotlinBuildProperties.limitTestTasksConcurrency) {
usesService(concurrencyLimitService)
}
}
// Aggregate task for build related checks