Scala CLI a more powerful Scala command to get rid of build tools
summary
Scala CLI claims to replace the scala command for single-module projects by running, testing, packaging and cross-compiling without an external build file; it downloads a JVM (Temurin 17), starts bloop and Coursier automatically, fetches Scala versions on demand and compiles a 3x2 matrix to run six test suites. A demo builds a small ASCII-art CLI, adds a dependency, produces JVM, JS and native executables, and publishes artifacts to a local Maven layout; an export to sbt/mill exists but has rough edges.
AI-written summary · about
chapters (16)
- 0:00Introduction to Scala CLI
- 2:09Why create Scala CLI
- 7:20Comparison with other tools
- 11:38Installing Scala CLI
- 13:48Demo setup and first run
- 19:13Writing a CLI application
- 23:18Cross-platform compilation
- 26:50Turning code into a library
- 28:42Adding tests
- 31:19Cross-compilation for libraries
- 33:57Packaging applications
- 35:42Publishing libraries
- 39:59When to use Scala CLI
- 42:09Switching to build tools
- 44:15Future of Scala CLI
- 46:18Q&A and closing
