问题:
I don't understand gradle plugins block我不明白 gradle 插件块
apply plugin: 'someplugin1'
apply plugin: 'maven'
and other one:和另一个:
plugins {
id 'org.hidetake.ssh' version '1.1.2'
}
In first block We have some plugin name.在第一个块中,我们有一些插件名称。 in second one package and version.在第二个包和版本中。 I don't understand where I should use first block and when second one.我不明白我应该在哪里使用第一个块以及何时使用第二个块。
解决方案:
参考一: https://stackoom.com/question/2BkRc参考二: What the difference in applying gradle plugin