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
Run Code Online (Sandbox Code Playgroud)
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
在您的主构建(project/Build.scala 或 build.sbt)中定义:
lazy val core = project in file("core") settings(...)
lazy val play = project in file("playWebsite") settings(...) dependsOn(core)
Run Code Online (Sandbox Code Playgroud)
就是这样...
| 归档时间: |
|
| 查看次数: |
1352 次 |
| 最近记录: |