gradle-bintray-plugin documentation说:Currently the "plugins" notation cannot be used for applying the plugin for sub projects, when used from the root build script.
这是什么意思?我应该在每个模块或其他东西中添加插件符号吗?
最佳答案
我不认为这是完全正确的。可以使用 plugins
用于多模块项目的 block 。
尝试以下方法(未经测试):
plugins {
id("com.jfrog.bintray") version "1.8.4" apply false
}
subprojects {
apply {
plugin("com.jfrog.bintray")
}
}
这应该将它应用于所有子项目,就像你做了
plugins {}
在每个项目中。
关于gradle - 子项目的插件符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57330241/