gradle providedCompile 與compile區別


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM