问题
How can I reformulate:
testCompile.extendsFrom compileOnly
of the Gradle Groovy DSL to its Kotlin-based equivalent?
configurations {
testCompile{
extendsFrom(compileOnly)
}
}
My approach above fails.
回答1:
configurations {
testCompile {
extendsFrom(configurations.compileOnly.get())
}
}
https://github.com/spring-projects/spring-boot/issues/16251
来源:https://stackoverflow.com/questions/62452133/gradle-kotlin-dsl-extendsfrom