playframework 2.0 - How to create subprojects inside Play with Intellij? -
currently have following play project structure:
- playapp
- modules
- common
- sub_project_two
- modules
playapp marked module, dependent on common.
modules directory.
common sub project(also play app).
sub_project_two sub project(also play app), dependent on common.
unfortunately cannot right click on "modules" , create new module(play app) , move on. currently, literally have right click playapp , create new module move "modules", , running dependency issues in intellij , failing import classes inside "common".
what correct way of creating subprojects inside intellij?
there no special way create subprojects in intellij. subprojects defined in sbt
build file. intellij discover these projects , configure them long have scala
plugin. imagine following project structure in build file:
lazy val playapp = project("playapp", file(".")).aggregate(common, subprojecttwo) lazy val common = project("common", file("modules/common")) lazy val subprojecttwo = project("subprojecttwo", file("modules/sub_project_two"))
for more details visit: http://www.scala-sbt.org/0.13.5/docs/getting-started/multi-project.html
Comments
Post a Comment