Play Framework 从 2.3 迁移到 2.4
Play Framework migration from 2.3 to 2.4
在plugins.sbt变化
发件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.6")
收件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")
build.properties 变化
发件人:sbt.version=0.13.5
收件人:sbt.version=0.13.8
有错误:
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Note that conflicts were resolved for some dependencies:
[error] org.apache.commons:commons-compress
[error] org.tukaani:xz
[error] org.codehaus.plexus:plexus-utils
[error] com.google.guava:guava
[error] org.codehaus.plexus:plexus-classworlds
[error] com.typesafe.akka:akka-actor_2.10
[error] com.typesafe:config
[error] org.slf4j:slf4j-api
[error] org.apache.commons:commons-lang3
[error] org.fusesource.leveldbjni:leveldbjni
[error] org.webjars:webjars-locator
[error] com.typesafe.sbt:sbt-web
[error] com.typesafe.sbt:sbt-js-engine
[error] Use 'last' for the full log.
有人知道怎么解决吗?
问题出在 play2-war-plugin 插件上。
只需将版本从:1.3-beta1
更改为 1.4-beta1
即可成功编译项目
在plugins.sbt变化
发件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.6")
收件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")
build.properties 变化
发件人:sbt.version=0.13.5
收件人:sbt.version=0.13.8
有错误:
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Note that conflicts were resolved for some dependencies:
[error] org.apache.commons:commons-compress
[error] org.tukaani:xz
[error] org.codehaus.plexus:plexus-utils
[error] com.google.guava:guava
[error] org.codehaus.plexus:plexus-classworlds
[error] com.typesafe.akka:akka-actor_2.10
[error] com.typesafe:config
[error] org.slf4j:slf4j-api
[error] org.apache.commons:commons-lang3
[error] org.fusesource.leveldbjni:leveldbjni
[error] org.webjars:webjars-locator
[error] com.typesafe.sbt:sbt-web
[error] com.typesafe.sbt:sbt-js-engine
[error] Use 'last' for the full log.
有人知道怎么解决吗?
问题出在 play2-war-plugin 插件上。
只需将版本从:1.3-beta1
更改为 1.4-beta1
即可成功编译项目