Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.76 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.76 KB

Quick-start project for Scala Coding Dojos

Provides:

  • Basic Scala project
  • IDE project generation (Eclipse and IntelliJ IDEA)
  • Unit-Test support out-of-the box

Requires:

  • SBT 0.13 (consider "sbt12" branch deprecated)
  • Scala 2.11.4 (SBT will download this for you)
  • Recommended: an IDE with unit-testing support, like:
    1. Eclipse plus the Scala-IDE plugins
    2. Scala-IDE (Eclipse with pre-configured Scala support)
    3. IntelliJ IDEA with the Scala plugin
  • Alternatively, you can use any text-editor and run sbt ~test from the console

How-to: use this project

  1. Install SBT (0.13 or later!)
  2. Clone this repository to your local computer
  3. cd dojo-quickstart
  4. Type sbt
  5. Within the sbt-console, type test
  6. You should see All tests passed

How-to: generate IDE projects

  1. On the sbt-console type either eclipse or gen-idea
  2. Import the project into your IDE
  3. Run tests from your IDE

Further customization (optional!)

If you want to change the generic names of this quick-start project, follow these instructions:

  1. Remove the project from the IDE and exit sbt
  2. Rename the directory to your liking
  3. Go to build.sbt and change the name of the project
  4. Enter sbt again and re-generate the IDE project either with eclipse or gen-idea
  5. Import the project into your IDE
  6. Change the name of the main classes, packages, etc.

When re-naming packages, make sure that you rename them both under "main" and "test".