playframework 2.2 - Play 2.3 subproject dependsOn -



playframework 2.2 - Play 2.3 subproject dependsOn -

this how configure subprojects @ play 2.3. however, gives me sbt.resolveexception: unresolved dependency. wrong settings? works in 2.2.

val model = project(appname + "-model", file("models")).enableplugins(play.playscala).settings( version := appversion, librarydependencies ++= modeldependencies ) val main = project(appname, file(".")).enableplugins(play.playscala).enableplugins(sbtweb).settings( version := appversion, librarydependencies ++= appdependencies ).dependson(model % "test->test;compile->compile")

try this:

lazy val model = project( id = s"${appname}-model", base of operations = file("models")) .enableplugins(play.playscala) .settings(version := appversion) .settings(scalaversion := "2.11.1" ) .settings(librarydependencies ++= modeldependencies) lazy val main = project( id = appname, base of operations = file("webapp")) .enableplugins(play.playscala) .enableplugins(sbtweb) .settings(name := "play-scala") .settings(version := appversion) .settings(scalaversion := "2.11.1" ) .settings(librarydependencies ++= appdependencies) .dependson(model % "test->test;compile->compile") override def rootproject = some(main)

playframework-2.2 playframework-2.3

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -