brew install scala in mac code example
Example 1: install scala using brew
$ brew update
$ brew install scala
$ brew install sbt
Example 2: install scala using brew
$ echo '-J-XX:+CMSClassUnloadingEnabled' >> /usr/local/etc/sbtopts
$ echo '-J-Xmx2G' >> /usr/local/etc/sbtopts