Възпроизвеждане на подпроект 2.3 зависи от

Ето как конфигурирам подпроектите в Play 2.3. Въпреки това ми дава sbt.ResolveException: неразрешена зависимост. Какво не е наред с настройките ми? Това работи във 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")

person angelokh    schedule 24.06.2014    source източник


Отговори (1)


Опитайте тази:

  lazy val model = Project(
    id = s"${appName}-model", 
    base = file("models"))
    .enablePlugins(play.PlayScala)
    .settings(version := appVersion)
    .settings(scalaVersion := "2.11.1" )
    .settings(libraryDependencies ++= modelDependencies)

  lazy val main = Project(
    id = appName,
    base = 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) 
person arpad    schedule 25.06.2014