Dab tsi yog siv plugin ua hauv gradle?
Dab tsi yog siv plugin ua hauv gradle?

Video: Dab tsi yog siv plugin ua hauv gradle?

Video: Dab tsi yog siv plugin ua hauv gradle?
Video: Siv Dab Tsi Ua VajTswv Hauj Lwm/ Zaj 208/ Voice/Tshaaj Muag /New Video/2022 2024, Hlis ntuj nqeg
Anonim

Kev thov a plugin rau ib qhov project tso cai rau plugin txhawm rau txuas ntxiv qhov project muaj peev xwm. Nws ua tau ua yam xws li: Extend the Gradle qauv (piv txwv li ntxiv DSL cov ntsiab lus tshiab uas tuaj yeem teeb tsa) Kho qhov project raws li cov lus pom zoo (piv txwv li ntxiv cov haujlwm tshiab lossis teeb tsa qhov kev xav tau zoo)

Yog li ntawd, gradle khiav ua dab tsi?

Gradle - Khiav ib Build. Gradle muab kab hais kom ua ua tsim tsab ntawv. Nws ua tau ua ntau tshaj ib txoj haujlwm ntawm ib lub sijhawm. Tshooj no piav qhia yuav ua li cas ua ntau yam haujlwm uas siv ntau txoj kev xaiv.

Ib tug kuj yuav nug, uas yog ib hom lus plugin suav nrog hauv Gradle faib? Lus plugins uas yog suav nrog hauv Gradle faib ntxiv kev txhawb nqa rau ntau yam yam lus uas tuaj yeem muab tso ua ke yooj yim thiab tom qab ntawd ua tiav hauv JVM (Java Virtual Machine). Ib txhia li plugins yog cov hauv qab no: java, zoj , scala, ntlr.

Khaws qhov no hauv kev txiav txim siab, Gradle plugins khaws cia nyob qhov twg?

Koj yuav pom cov plugin . jar file hauv lub ~/. qib /caches/modules-2/files-2.1/ folder.

Dab tsi yog SourceCompatibility hauv gradle?

Raws li Gradle cov ntaub ntawv: SourceCompatibility yog "Java version compatibility siv thaum compiling Java qhov chaw." targetCompatibility yog "Java version los tsim cov chav kawm rau."

Pom zoo: