scala-min project includes:
- Sample Scala codes.
- ScalaTest examples
- Pre-configured settings for developing with IntelliJ IDE
- A command for packaging projects with sbt-pack plugin.
sbt-pack
also generates installation scripts for you programs.
Download tar.gz archive of this project, then extract the contents:
Run tests
$ bin/sbt test
Run tests when updates of source codes are detected
$ bin/sbt "~test"
Run specific tests maching a pattern
$ bin/sbt "~test-only *HelloTest"
Run tagged test only
$ bin/sbt "~test -- include(test1)"
Create a runnable package
$ bin/sbt pack
$ target/pack/bin/hello
Hello World!!
Install your program
$ bin/sbt pack
$ cd target/pack; make install
$ ~/local/bin/hello
Hello World!!
Create IntelliJ project files
$ bin/sbt gen-idea
Add dendent libraries
Edit project/Build.scala
, then add libraries to libraryDependences
variable.
Rename the project name defined in project/Build.scala
as you like.
- Add examples using command line parser