如何将这个 gradle groovy 片段转换为 gradle kotlin dsl 而不是非常冗长?
test {
systemProperties System.getProperties()
}
最佳答案
我最终得到了这个...
tasks.named<Test>("test") {
systemProperties System.getProperties() as Map<String, Any>
}
关于gradle-kotlin-dsl - 如何将所有系统属性传递给 gradle kotlin dsl 中的测试任务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56257454/