Multi-Project SBT Builds with Play Framework

I am trying to create 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 does the playWebsite project depend on the core?

Of course, I try to simplify, in fact, I have many projects that depend on the kernel.

Obviously, this is a very common problem, but I can not find a solution. Maybe because I won’t go in the right direction?

Maybe the kernel should be a "stand-alone" project with its own Build.scala?


https://www.playframework.com/documentation/2.3.5/SBTSubProjects
He doesn't look like me. I do not want a subproject, I want to depend on a project with a higher leverage.

https://github.com/kifi/multiproject
I do not want to combine several reproduction projects

EDIT:

Maybe this is the way to go? Need consultation on the layout of the project for submodule 2.2 playback with other modules as dependencies
+5
source share
1 answer

in your main assembly (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) 

what about it ...

+2
source

Source: https://habr.com/ru/post/1204320/


All Articles