From the Scala IDE point of view, there are 2 possibilities:
- the sbt build contains 2 projects, the core one and the play one. Using
eclipse
from the sbt prompt will generate the correct Eclipse configuration file, and the 2 projects will be linked when imported in the workspace. - there are 2 sbt builds, each containing one project. The
eclipse
sbt command will generate independent project configurations. After importing the projects in the workspace, theJava build path
(in the project properties) will have to be tweaked to make one project depend on the other. (quick tip: make sure to select the dependencies you need in theOrder and Export
tab).
If you set it up with 2 sbt builds, you will likely need to publish the core locally, and add it as a dependency in the play build.
I will let others chime in about configuring multi-projects in one sbt build.