From 4e19ed35bf948ac5692500cc83bca4a4488472d3 Mon Sep 17 00:00:00 2001 From: David Hoepelman Date: Wed, 25 Dec 2024 20:14:15 +0100 Subject: [PATCH] Fix toBooleanLenient --- build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0f5b5d7..6010a63 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,4 @@ import org.gradle.internal.extensions.stdlib.capitalized -import org.jetbrains.kotlin.cli.common.toBooleanLenient import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl import org.jetbrains.kotlin.gradle.dsl.JvmTarget @@ -19,7 +18,7 @@ val kotlinApiTarget = "1.7" val jvm = JvmTarget.JVM_1_8 /** The "CI" env var is a quasi-standard way to indicate that we're running on CI. */ -val onCI: Boolean = System.getenv("CI")?.toBooleanLenient() ?: false +val onCI: Boolean = System.getenv("CI") == "true" plugins { alias(libs.plugins.kotest.multiplatform)