I'm trying to build a Multi-Project Builds using sbt with a Play Framework project.
|-- core (**many external dependancy**)
| `-- src
| `-- main
| `-- scala
| `-- com
| `-- VeryComplexStuff.scala
|-- playWebsite
| `-- [...]
|
`-- project
|-- Build.scala
|-- assembly.sbt
|-- build.properties
|-- plugins.sbt
`-- sbt-updates.sbt
How can the project "playWebsite" dependOn "core" ?
Of course I try to simplify, in reality I have many project who depend on core.
Obviously this is a very common problem but I can't find any solution.
Is it maybe because I'm not going in the right direction ?
Maybe core should be a "standalone" project with it own Build.scala ?
https://www.playframework.com/documentation/2.3.5/SBTSubProjects
It doesn't look to fit me. I don't want a sub-project, I want to depend on an "higher lever" project.
https://github.com/kifi/multiproject
I don't want to merge multiple play project
in your main build (project/Build.scala or build.sbt) define:
lazy val core = project in file("core") settings(...)
lazy val play = project in file("playWebsite") settings(...) dependsOn(core)
that's about it...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With