How to create a sbt project.
- Prepare the setup.sh file
- Make an executable out of it:
chmod +ux setup.sh
- Run the setup
./setup.sh
$ sbt run
object HelloWorld { | |
def main(args: Array[String]): Unit = { | |
println("Hello, world!") | |
} | |
} |
#!/bin/sh | |
mkdir -p src/{main,test}/{java,resources,scala} | |
mkdir lib project target | |
# create an initial build.sbt file | |
echo 'name := "MyProject" | |
version := "1.0" | |
scalaVersion := "2.10.0"' > build.sbt |