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
- 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
- On the sbt-console type either
eclipse
orgen-idea
- Import the project into your IDE
- Run tests from your IDE
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".