Koj tuaj yeem ua dab tsi nrog gradle?
Koj tuaj yeem ua dab tsi nrog gradle?

Video: Koj tuaj yeem ua dab tsi nrog gradle?

Video: Koj tuaj yeem ua dab tsi nrog gradle?
Video: Ua Dab Tsi Txhaum Koj - David Yang (New Song 2021) 2024, Hlis ntuj nqeg
Anonim

Gradle tso cai rau tswj cov classpath ntawm koj tej yaam num. Nws ua tau ntxiv JAR cov ntaub ntawv, cov npe lossis lwm cov haujlwm rau txoj hauv kev tsim koj daim ntawv thov. Nws kuj txhawb kev rub tawm tsis siv neeg ntawm koj lub tsev qiv ntawv Java dependencies. Tsuas yog qhia qhov kev vam meej hauv koj li Gradle tsim cov ntaub ntawv.

Tsis tas li ntawd, gradle siv tau rau dab tsi?

Gradle yog ib qho cuab yeej tsim automation feem ntau siv rau JVM hom lus xws li Java, Groovy lossis Scala. Gradle tau tau configured khiav Tasks uas ua tej yam xws li compile jar s, khiav kev xeem, tsim cov ntaub ntawv thiab ntau ntxiv.

Ib sab saum toj no, Gradle Clean ua dab tsi? Cov huv si txoj haujlwm yog txhais los ntawm java plugin thiab nws tsuas yog tshem tawm cov ntawv buildDir, yog li ntxuav txhua yam suav nrog cov khoom seem los ntawm kev tsim yav dhau los uas tsis cuam tshuam ntxiv lawm. Tsis ua li ntawd yuav ua rau muaj kev tsim tsis huv uas yuav tawg vim yog cov khoom qub uas tsim los ntawm kev tsim yav dhau los.

Thiab cov lus nug yog, dab tsi yog gradle thiab koj siv nws li cas?

Tso tawm xyoo 2007, Gradle yog qhov nrov qhib qhov kev tsim kho qhov system uas ua rau kev ua haujlwm ntawm cov haujlwm loj yooj yim dua. Nws yog raws li cov tswv yim los ntawm nws cov thawj coj Apache Maven thiab Apache Ant, tab sis siv Groovy-based sau cov lus tshwj xeeb (DSL) thiab Java, tsis yog XML.

Cov hauj lwm gradle yog dab tsi?

Gradle - Cov hauj lwm . A txoj hauj lwm yog ib qho haujlwm uas a tsim ua. Cov txoj hauj lwm tej zaum yuav suav qee cov chav kawm, khaws cov ntaub ntawv hauv chav kawm rau hauv cov phiaj xwm cais, tsim JAR, tsim Javadoc, lossis tshaj tawm qee qhov ua tiav rau cov chaw khaws cia.

Pom zoo: