Awesome
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:
- Eclipse plus the Scala-IDE plugins
- Scala-IDE (Eclipse with pre-configured Scala support)
- 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
- Install SBT (0.13 or later!)
- Clone this repository to your local computer
cd dojo-quickstart
- Type
sbt
- Within the sbt-console, type
test
- You should see
All tests passed
How-to: generate IDE projects
- On the sbt-console type either
eclipse
orgen-idea
- Import the project into your IDE
- Run tests from your IDE
Further customization (optional!)
If you want to change the generic names of this quick-start project, follow these instructions:
- Remove the project from the IDE and exit sbt
- Rename the directory to your liking
- Go to
build.sbt
and change thename
of the project - Enter
sbt
again and re-generate the IDE project either witheclipse
orgen-idea
- Import the project into your IDE
- Change the name of the main classes, packages, etc.
When re-naming packages, make sure that you rename them both under "main" and "test".