1. Install Java 8
2. Install apache ant:
brew install ant
3. Check out the scala repo:
git clone https://github.com/scala/scala.git
4. Build the scala distribution with
ant
Wait 16 minutes.
5. Build the scala docs with:
ant docs
Wait 6 minutes.