Gradle Kotlin DSL扩展自 [英] gradle kotlin DSL extendsfrom
本文介绍了Gradle Kotlin DSL扩展自的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何重新制定:
testCompile.extendsFrom compileOnly
Gradle Groovy DSL与基于Kotlin的同等产品?
of the Gradle Groovy DSL to its Kotlin-based equivalent?
configurations {
testCompile{
extendsFrom(compileOnly)
}
}
我的上述方法失败.
推荐答案
configurations {
testCompile {
extendsFrom(configurations.compileOnly.get())
}
}
https://github.com/spring-projects/spring-boot/issues/16251
这篇关于Gradle Kotlin DSL扩展自的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文