Builds and practice
A program that stays on one machine is a file and a runner; a program that a team builds, tests and ships is a project. This last part is about the difference: the sbt layout and the build.sbt that drives it, a test run from the build, several modules in one build, and a jar that carries everything it needs.
The rest of the part is about the world around a Scala program: calling Java and being called from it, the libraries a production service is built from, the compiler messages a beginner meets, and a finishing project that puts a pure core, a suite, a format check and a command line together in one folder. The project is the lesson to copy when the next tool starts.
073
The sbt project layout
build.sbt, project/build.properties, src/main/scala and src/test/scala
Open
074
build.sbt, settings and tasks
libraryDependencies, a setting, a task, and sbt compile and run with the real log
Open
075
sbt tests and multiple modules
sbt test, a multi-module build, and the aggregate that runs them all
Open
076
Packaging
scala-cli package, an assembly, and what the run needs to stay offline
Open
077
Java interoperability
Scala calls Java, Java calls a Scala class, and the static forwarder
Open
078
The ecosystem
Cats, ZIO, Pekko, Spark and http4s: what each one is for, described and not run
Open
079
Common errors
the messages a beginner meets, each with its cause and its fix
Open
080
The finishing project
a command line tool with its MUnit tests, format-checked and run end to end
Open