Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1.21 KB

DEVELOP.md

File metadata and controls

60 lines (36 loc) · 1.21 KB

UTGB Devnote

Contents

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.

Usage

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.

Customize

Rename the project name defined in project/Build.scala as you like.

ToDo

  • Add examples using command line parser