Why does sbt fail with NoClassDefFoundError: play/Play$ in Play 2.2.x projects after sbt compile in Play 2.3 project?

后端 未结 5 768
慢半拍i
慢半拍i 2020-12-17 17:50

Once I run \'sbt compile\' on a 2.3 play project, I can\'t use \'sbt compile\' to compile any Play 2.2.x projects anymore. This is the error when I run sbt command.

5条回答
  •  生来不讨喜
    2020-12-17 18:31

    Try updating play-fork-run.sbt

    addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.3.8")
    

    update to

    addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.0")
    

    Then project will be able to build.

提交回复
热议问题