Upgrading project to version 2.2.0 of the Play Framework

前端 未结 3 523
傲寒
傲寒 2021-01-07 21:57

When upgrading a play project to 2.2.0 the following error comes up:

sbt.ResolveException: unresolved dependency: play#sbt-plugin;2.2.0: not found

相关标签:
3条回答
  • 2021-01-07 22:37

    Edit the following line in project/plugin.sbt:

    addSbtPlugin("play" % "sbt-plugin" % "2.2.0")
    

    to

    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0")
    

    Make sure you have the correct version of sbt in build.properties:

    sbt.version=0.13.0
    
    0 讨论(0)
  • 2021-01-07 22:38

    There are even more things, that you need to do to upgrade your application: Play 2.2 migration guide

    0 讨论(0)
  • 2021-01-07 23:03

    While upgrading, you may face a problem to package your application as .war

    Play 2.1.4 onwards, support for packaging into a war file has been withdrawn. There is a workaround for the same which can help you in generating war file. You fool the compiler and let it think that we are using earlier version of Play. For details refer to the following link :-

    Create War from Play 2.2.1 application

    It is working till day for me :)

    0 讨论(0)
提交回复
热议问题