A Super Good scala sbt tool tutorial
2024-12-31
https://conorfennell.github.io/scala-zen/articles/sbt.html
sbt "tasks -v"
bgRun Start an application's default main class as a background job
bgRunMain Start a provided main class as a background job
clean Deletes files produced by the build, such as generated sources, compiled classes, and task caches.
compile Compiles sources.
console Starts the Scala interpreter with the project classes on the classpath.
consoleProject Starts the Scala interpreter with the sbt and the build definition on the classpath and useful imports.
consoleQuick Starts the Scala interpreter with the project dependencies on the classpath.
copyResources Copies resources to the output directory.
deliver Generates the Ivy file for publishing to a repository.
deliverLocal Generates the Ivy file for publishing to the local repository.
dependencyClasspath The classpath consisting of internal and external, managed and unmanaged dependencies.
dependencyClasspathAsJars The classpath consisting of internal and external, managed and unmanaged dependencies, all as JARs.
doc Generates API documentation.
exportedProductJars Build products that go on the exported classpath as JARs.
exportedProductJarsIfMissing Build products that go on the exported classpath as JARs if missing.
exportedProductJarsNoTracking Just the exported classpath as JARs without triggering the compilation.
fullClasspath The exported classpath, consisting of build products and unmanaged and managed, internal and external dependencies.
fullClasspathAsJars The exported classpath, consisting of build products and unmanaged and managed, internal and external dependencies, all as JARs.
internalDependencyAsJars The internal (inter-project) classpath as JARs.
javaOptions Options passed to a new JVM when forking.
javacOptions Options for the Java compiler.
mainClass Defines the main class for packaging or running.
makePom Generates a pom for publishing when publishing Maven-style.
manipulateBytecode Manipulates generated bytecode
mappings Defines the mappings from a file to a path, used by packaging, for example.
package Produces the main artifact, such as a binary jar. This is typically an alias for the task that actually does the packaging.
packageBin Produces a main artifact, such as a binary jar.
packageDoc Produces a documentation artifact, such as a jar containing API documentation.
packageSrc Produces a source artifact, such as a jar containing sources and resources.
printWarnings Shows warnings from compilation, including ones that weren't printed initially.
publish Publishes artifacts to a repository.
publishLocal Publishes artifacts to the local Ivy repository.
publishM2 Publishes artifacts to the local Maven repository.
publishTo The resolver to publish to.
publisher Provides the sbt interface to publisher
run Runs a main class, passing along arguments provided on the command line.
runMain Runs the main class selected by the first argument, passing the remaining arguments to the main method.
scalacOptions Options for the Scala compiler.
test Executes all tests.
testOnly Executes the tests provided as arguments or all tests if no arguments are provided.
testOptions Options for running tests.
testQuick Executes the tests that either failed before, were not run or whose transitive dependencies changed, among those provided as arguments.
unmanagedClasspath Classpath entries (deep) that are manually managed.
unmanagedJars Classpath entries for the current project (shallow) that are manually managed.
unmanagedResources Unmanaged resources, which are manually created.
unmanagedSources Unmanaged sources, which are manually created.
update Resolves and optionally retrieves dependencies, producing a report.
updateClassifiers Resolves and optionally retrieves classified artifacts, such as javadocs and sources, for dependency definitions, transitively.
updateSbtClassifiers Resolves and optionally retrieves classifiers, such as javadocs and sources, for sbt, transitively.
woo Woo