in src/testFixtures/kotlin/org/jetbrains/intellij/platform/gradle/IntelliJPlatformTestBase.kt [115:132]
protected fun builder(
gradleVersion: String,
vararg tasks: String,
projectProperties: Map<String, Any> = emptyMap(),
systemProperties: Map<String, Any> = emptyMap(),
args: List<String> = emptyList(),
) =
GradleRunner.create()
.withProjectDir(dir.toFile())
.withGradleVersion(gradleVersion)
.forwardOutput()
.withPluginClasspath()
.withDebug(debugEnabled)
.withTestKitDir(gradleHome.toFile())
.withArguments(
"-Dorg.gradle.kotlin.dsl.scriptCompilationAvoidance=false", // workaround for https://github.com/gradle/gradle/issues/25412
*projectProperties
.run { this + mapOf("platformVersion" to System.getenv("PLATFORM_VERSION")).filterNot { it.value == null } }