I have the following project structure:
myproject
|
+- app
|
+- conf
|
+- project
| |
| +- project
| |
| +- Build.scala (etc.)
|
+- modules
|
+- security
|
+- app
|
+- conf
Here is the snippet from my build file:
val security = PlayProject(
appName + "-security", appVersion, path = file("modules/security")
)
If I try to do a sbt publish with a non snapshot version, sbt exits with following error:
sbt.ResolveException: unresolved dependency: myproject-security#myproject-security_2.9.1;123
Of course it can’t find the dependency in the repository. But how can I publish the submodules together with the main project?
Thank you in advance.
I found out I needed to aggregate the main project to achieve the desired result.
Like so: