問題:
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