應用gradle插件有什麼區別 - What the difference in applying gradle plugin

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章