SBT plugin yog dab tsi?
SBT plugin yog dab tsi?

Video: SBT plugin yog dab tsi?

Video: SBT plugin yog dab tsi?
Video: 5 de junho de 2023 2024, Kaum ib hlis
Anonim

A plugin yog ib txoj hauv kev siv cov lej sab nraud hauv kev tsim cov ntsiab lus. A plugin tuaj yeem txhais ib ntu ntawm ua sbt cov chaw uas tau txais kev ntxiv rau tag nrho cov haujlwm lossis uas tau tshaj tawm meej meej rau cov haujlwm xaiv. Piv txwv li, a plugin tuaj yeem ntxiv cov haujlwm tiv thaiv thiab cuam tshuam (overridable) chaw.

Hais txog qhov no, SBT yog dab tsi?

ua sbt yog qhov qhib-qhov tsim cuab yeej rau Scala thiab Java tej yaam num, zoo ib yam li Java's Maven thiab Ant. Nws cov yam ntxwv tseem ceeb yog: Tsim cov lus piav qhia hauv Scala siv DSL. Kev tswj hwm kev vam khom siv Ivy (uas txhawb nqa Maven-hom repositories)

Ib tug kuj yuav nug, SBT compile ua dab tsi? Tshem tawm tag nrho cov ntaub ntawv generated los ntawm lub hom phiaj directory. Compiles qhov chaws cov ntaub ntawv uas yog hauv src/main/ scala , src/main/java, thiab lub hauv paus directory ntawm qhov project. Tsis siv neeg recompiles qhov chaws cov ntaub ntawv thaum koj tab tom khiav SBT hauv kev sib tham sib hom (piv txwv li, thaum koj nyob ntawm SBT command prompt).

Ntawm no, SBT plhaub yog dab tsi?

sbt console yog cov ua sbt plugin -- nyem pib koj yuav nkag mus rau hauv ua sbt sib tham sib hom. sbt cev yog ib feem ntawm scala plugin, uas zoo ib yam li cov lus hais saum toj no sbt console thiab tuaj yeem ua tiav cov lus txib.

Scala project yog dab tsi?

Scala yog ib tug niaj hnub multi-paradigm programming lus tsim los qhia cov qauv kev ua haujlwm hauv ib qho yooj yim, elegant, thiab hom kev nyab xeeb. Nws smoothly integrates nta ntawm cov khoom-oriented thiab functional languages.

Pom zoo: