# TDLR / Takeaway
- Mill-Build tries to make builds 'understandable' by using constructs you are already familiar with
- It makes integration of non-standard build steps easy: Front-ends integration, native builds, documentation, etc
- You can't switch to Mill?
  - Check out your build tool (ex. SBT). It can do a lot of these things as well, with some more work.
  - General: Pick a build tool you do not actively hate

# Intro
While we love to develop our code, most developer do not love to maintain our build infrastructure.

Build systems and the corresponding build scripts often do not the get the love they deserve:
The consequences are slow & fragile builds, hard to maintain obscure build structures
and ad-hoc plumbing of different tools. Because everyone dreads to work on the build, it doesn't get better.

# Example Pains
- A build that had: Scala + ScalaJS + Webpack + Special Tools + DB migrations + OSGi + Documentation 
- Scala + Proguard + Packaging minimized JVM + dotNet + Native Code + Special Company internal tooling
  - Plus 'dogfooding': The Special company tooling needs to be build first to build later part of the build

# Mill Build
Mill is a build system that tries to not make you hate builds:

- Using Scala constructs you already now, leveraging the IDE support
  and your Scala/Java experience
- Build in debugging / tools for your builds
- Caching by default

# Mill-Demo: Whirlwind Tour of Mill Build

- Build Example: Scala + Web + Some Docs + Maybe more

# Debugging / Pitfalls
Quick overview of the build in debugging tools
- Inspect, visualize and show the build results
- Profiling
- Pitfalls:
  - Isolation only by convention
  - You must return a 'value' for a build step
  - Macro magic

# Final Words / Conclusion
If you are in acute build pain, you might want to try Mill.

However, switching build systems is a lot of work.
A lot of this functionality is maybe available in your current build tool:

- SBT can most of these things if you ask it. 
- You can steal some discipline and ideas and adopt it into your build.
- Use a build system you love, so the build doesn't decay



I've used a variety of different built systems, from Ant to SBT.
They often feel under powered, to stiff or to complex.
Mill Build is a build system which finds a sweet spot of convenience and power to build more than just Scala, 
but also documentation, front-end, native libs etc.
