Last active
May 13, 2016 10:18
-
-
Save davegurnell/1ad6078cf81c21342ce3127f1a6355bc to your computer and use it in GitHub Desktop.
Quick start shell script for SBT on OS X.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install SBT if you need to: | |
| brew install sbt | |
| # Make a directory for your project: | |
| mkdir MYAPP | |
| cd MYAPP | |
| # Basic project directory structure: | |
| mkdir -p project | |
| mkdir -p src/main/scala | |
| mkdir -p src/test/scala | |
| # Config files to fix your Scala and SBT versions: | |
| echo 'scalaVersion := "2.11.8"' > build.sbt | |
| echo 'sbt.version = 0.13.11' > project/build.properties | |
| # Application entry point: | |
| echo 'object Main extends App {' > src/main/scala/Main.scala | |
| echo ' println("Hello world!")' >> src/main/scala/Main.scala | |
| echo '}' >> src/main/scala/Main.scala | |
| # GET TO DA CHOPPA! | |
| sbt run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment