[2.4.3 Java] Upgrade to 2.4.6 is more involved than I thought?

100 views
Skip to first unread message

Slim Slam

unread,
Jun 1, 2016, 4:01:46 PM6/1/16
to play-framework
I was expecting that upgrading from Play 2.4.3 to 2.4.6 would be a fairly
minor affair, but it seems that I haven't been paying attention for a while (?)

We're using Java 8.

Our Play 2.4.3 app generates no warnings or errors and runs fine. 

Downloading the latest 2.4.6 package and creating a new Play java app, it seems
that these are the upgrade steps:

build.sbt

scalaVersion
:= "2.11.6"
 goes to
scalaVersion
:= "2.11.7"


Plugins.sbt

addSbtPlugin
("com.typesafe.play" % "sbt-plugin" % "2.4.6")
 goes to
addSbtPlugin
("com.typesafe.play" % "sbt-plugin" % "2.5.3")

activator-launch-1.3.10.jar
replaces
activator
-launch-1.3.7.jar

After doing these three steps and recompiling, I see these warnings

[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * com.typesafe.play:play-java-ws_2.11:2.4.0 -> 2.5.3
[warn] * com.typesafe.play:play-jdbc-evolutions_2.11:2.4.0 -> 2.5.3
[warn] * com.typesafe.play:play-cache_2.11:2.4.0 -> 2.5.3
[warn] * com.typesafe.play:play-java-jdbc_2.11:2.4.0 -> 2.5.3
[warn] * com.typesafe.play:play-netty-server_2.11:2.4.0 -> 2.5.3
[warn] * com.typesafe.play:play-java_2.11:2.4.0 -> 2.5.3
[warn] * com.typesafe.play:play-server_2.11:2.4.0 -> 2.5.3

And every single line of our routes file generates an error of the form:

[error] routes:LINENUMBER: value SOMEVALUE is not a member of controllers.SOMECONTROLLER FILE

I'm not sure where the changes are between Play 2.4.3 and 2.4.6 that we missed. Can someone please fill me in?

Thanks!

Marcos Pereira

unread,
Jun 1, 2016, 4:32:02 PM6/1/16
to play-framework
I highly recommend that you read the migration guide:


This section explains the problem you are having with the routes:


About the dependencies eviction, it could be that:

1. You are using some other dependency that is adding Play 2.4.6 transitively
2. You are manually declaring play dependencies.

Either way, we need to see  your build.sbt file to help you to figure out what is happening.

Best,


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/3b057050-48ad-4d6d-8a0d-2f7e994438e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slim Slam

unread,
Jun 1, 2016, 4:39:43 PM6/1/16
to play-framework
So what you're saying is that there's a bug in the 2.4.6 release of Play because it's
creating new applications that are targeted at Play 2.5.3 instead of Play 2.4.6 ?

I'm upgrading to Play 2.4.6, not Play 2.5.x\

J

Greg Methvin

unread,
Jun 1, 2016, 5:19:13 PM6/1/16
to play-framework
Hi Slim,

Upgrading to 2.4.6 should be as simple as changing the version to 2.4.6 in plugins.sbt. If you are changing the version to 2.5.3 then you are in fact upgrading to 2.5.3.

Greg


For more options, visit https://groups.google.com/d/optout.



--
Greg Methvin
Senior Software Engineer

Reply all
Reply to author
Forward
0 new messages