~/talk

An Introduction to the Mill Build Tool

Talkat ScalaCon November 2021 · 2021-11-02..11-05· [devops-and-delivery]
links:none on file
slides:none on file

Mill is a Scala-written general-purpose build tool based on Ammonite and positioned as an sbt alternative with 1.6k stars on GitHub. It defines tasks as T-blocks invoked with empty parentheses, composes cached tasks into an out/ folder, records outputs as JSON using upickle so downstream results are reusable, and uses PathRef hashes plus os-lib for file IO. Plugins are abstract modules, BSP enables IntelliJ support (VS Code currently imports via Bloop), and it cross-compiles JVM and Scala.js (runs in node). Version 0.10 adds first binary-compat guarantees.

AI-written summary · about

  1. 0:00Introduction to Mill
  2. 1:15What is a build tool
  3. 2:39Tasks and targets in Mill
  4. 4:04Caching in Mill
  5. 6:56Task composition
  6. 9:01Inputs and commands
  7. 10:47Custom output types
  8. 12:53Reading files
  9. 16:09Writing files
  10. 17:31Modules in Mill
  11. 18:55Plugins in Mill
  12. 22:07Sharing plugins
  13. 23:09Nested modules
  14. 24:12Discovering tasks
  15. 25:37Cross modules
  16. 28:50Building Scala code
  17. 29:30Editor support
  18. 31:15Running Scala projects
  19. 35:04Testing in Mill
  20. 36:32Module dependencies
  21. 37:35Cross-platform builds
  22. 41:08Mill vs SBT
  23. 43:32Future of Mill
  24. 44:13Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.