Master project management and build automation in Scala, focusing on sbt (Scala Build Tool), dependency management, plugins, packaging, and publishing libraries. Essential for efficient Scala development and deployment.
build.sbtsbt.configproject.sbtsettings.sbtbuild.sbt using scalaVersionsettings.sbt using scalaVersioncompilesbt compilebuildrun compilerunexecutestartlaunchscalacOptions configure?
testsbt testrunTesttestCompileclean command?
target directorydependencies block in build.sbtimport statementslibraryDependencies block in build.sbtaddPluginplugins.sbtpluginDependenciesplugins.addlibraryDependencies +=addDependenciesdependencies.addimportDependenciesin keywordbuild.sbtdependencyScopesbt-updatessbt-dependency-checksbt-pluginssbt-versionresolvers setting do?
sbt-scalatestsbt-testsbt-junitsbt-mavenplugins listlistPluginsshow pluginsplugins --listdependencyOverrides setting used for in sbt?
.jar file?
packagejarsbt packagebuildpublish commandsbt publishTodeployuploadpublishTotargetReporepoPathdeployTopublishLocalpublishdeploysbt publishpublishLocaldeployLocallocalPublishbuildPublishversion.sbtbuild.sbtlibraryVersion.sbtsettings.sbtassembly plugin?
.jar filepublishTopublishdeploypushartifactId setting define when publishing a library?
| Qno | Answer (Option with the text) |
|---|---|
| 1 | B) Scala Build Tool |
| 2 | D) All of the above |
| 3 | A) build.sbt |
| 4 | A) In build.sbt using scalaVersion |
| 5 | B) sbt compile |
| 6 | A) run |
| 7 | B) Caching |
| 8 | B) Scala compiler options |
| 9 | B) sbt test |
| 10 | A) To delete the target directory |
| 11 | C) libraryDependencies block in build.sbt |
| 12 | B) plugins.sbt |
| 13 | A) libraryDependencies += |
| 14 | D) Both A and B |
| 15 | A) To extend sbt functionality |
| 16 | A) sbt-updates |
| 17 | A) Defines repositories for fetching dependencies |
| 18 | A) sbt-scalatest |
| 19 | D) plugins --list |
| 20 | A) To override specific versions of libraries |
| 21 | A) package |
| 22 | B) Using sbt publishTo |
| 23 | A) publishTo |
| 24 | A) Maven Central |
| 25 | B) publish |
| 26 | A) publishLocal |
| 27 | B) build.sbt |
| 28 | A) To package a project into a single .jar file |
| 29 | B) publish |
| 30 | D) The unique identifier for the artifact |