A simple Scala & Vaadin project template
First you need install g8. See their page for instructions. Then just drop in to a shell:
g8 perspectivet/vaadin-scala <answer questions, enter for defaults> cd <project dir> sbt sbt>container:start
And browse to http://localhost:8080. You can also type eclipse in the SBT-prompt to create Eclipse project files and import the project to Eclipse as an existing project.
One of the nice features of sbt is Continuous Compilation (CC). CC puts sbt in a mode where it waits for changes to the source tree and selectively recompiles.
For non-web projects:
For Vaadin web projects. Assuming you've run "container:start" above:
Using Vaadin add-ons
The build.sbt created by the template contains the necessary (GWT sbt plugin) code to compile the addons.
Add-ons are already enabled, but there are steps required to add additional add-ons.
- Add a dependency to the add-on to the libraryDependencies Seq(...) in the build.sbt file
- Add the GWT module of the add-on to the gwt.xml file in the src directory.
- Type gwt-compile in the sbt prompt to compile the widgetset