diff --git a/build.gradle.kts b/build.gradle.kts index 5f34851d..85b46c10 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.openapitools.generator.gradle.plugin.tasks.GenerateTask -import kotlin.math.min +import kotlin.math.max val ktor_version: String by project val kotlin_version: String by project @@ -29,7 +29,7 @@ version = "0.0.1" tasks.withType { useJUnitPlatform() val cpus = Runtime.getRuntime().availableProcessors() - maxParallelForks = min(1, cpus - 1) + maxParallelForks = max(1, cpus - 1) setForkEvery(4) }