文章出處

Gradle compile:
 如果你的jar包/依賴代碼 在編譯的時候需要依賴,在運行的時候也需要,那么就用compile
例如 :

compile 'org.springframework.boot:spring-boot-starter-websocket:1.1.6.RELEASE'


Gradle providedCompile:
如果你的jar包/依賴代碼 僅在編譯的時候需要,但是在運行時不需要依賴,就用providedCompile
例如:

providedCompile 'org.springframework.boot:spring-boot-starter-tomcat:1.1.6.RELEASE'

參考:Gradle compile and providedCompile Example

轉載請注明:http://www.cnblogs.com/langtianya/p/5212151.html


文章列表


不含病毒。www.avast.com
文章標籤
全站熱搜
創作者介紹
創作者 大師兄 的頭像
大師兄

IT工程師數位筆記本

大師兄 發表在 痞客邦 留言(0) 人氣(0)