Что эквивалентно этому в Kotlin DSL:
run {
systemProperties["spring.output.ansi.enabled"] = "always"
}
Я пытался:
run {
systemProperties("spring.output.ansi.enabled" to "always")
}
Но получил:
* What went wrong: Script compilation error:
Line 37: systemProperties(Pair("spring.output.ansi.enabled", "always"))
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public inline fun JavaExec.systemProperties(vararg properties: Pair<String, Any?>): JavaExec defined in org.gradle.kotlin.dsl
public inline fun Test.systemProperties(vararg properties: Pair<String, Any?>): Test defined in org.gradle.kotlin.dsl
public inline fun JavaForkOptions.systemProperties(vararg properties: Pair<String, Any?>): JavaForkOptions defined in org.gradle.kotlin.dsl