Play 2.2.6 for Scala 2.11

101 views
Skip to first unread message

Michael Slinn

unread,
May 1, 2016, 11:23:48 PM5/1/16
to play-framework
I'd *really* like to move our app from Play 2.2.6 & Scala 2.10 to something more current. The problem we face is that many dependencies, including Play, are not available for both Scala 2.10 and Scala 2.11. That makes upgrading incredibly difficult, as massive changes ripple throughout the webapp and it would probably not compile until person-weeks of effort are expended. "Big Bang" upgrades are expensive and risky.

It would be a huge help to find or build a version of Play 2.2.6 for Scala 2.11. That would allow us to upgrade one dependency at a time. We also use Play 2.2.6 components,. so I also need Scala 2.11 versions of the following:

com.typesafe.play:filters-helpers_2.11:2.2.6.jar
com.typesafe.play:play_cache_2.11:2.2.6:jar
com.typesafe.play:play-datacommons_2.11:2.2.6:jar
com.typesafe.play:play-functional_2.11:2.2.6:jar
com.typesafe.play:play-iteratees_2.11:2.2.6:jar
com.typesafe.play:play-jdbc_2.11:2.2.6:jar
com.typesafe.play:play-json_2.11:2.2.6:jar
com.typesafe.play:play-test_2.11:2.2.6:jar
com.typesafe.play:play_2.11:2.2.6:jar
com.typesafe.play:sbt-link_2.11:2.2.6:jar
com.typesafe.play:templates_2.11:2.2.6:jar
com.typesafe.play:play-plugins-mailer_2.11:2.2.6:jar
com.typesafe.play:play-plugins-util_2.11:2.2.6:jar

Has anyone done this already? If so, which repo has them? If not, any advice for building the above?

Thanks,

Mike

Naftoli Gugenheim

unread,
May 2, 2016, 12:00:45 AM5/2/16
to play-framework

Why not upgrade the play version first?


--
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/7a9a94ee-a187-4c7a-aa5b-338a0cfa146d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Slinn

unread,
May 2, 2016, 12:03:50 AM5/2/16
to play-fr...@googlegroups.com
Oh, god. I wish we could do that easily. We would have done so years
ago. Please believe me when I say this is not easy.

I am only looking for help with the question as asked.

Thanks,

Mike

alex s

unread,
May 2, 2016, 1:50:06 AM5/2/16
to play-framework
понедельник, 2 мая 2016 г., 6:23:48 UTC+3 пользователь Michael Slinn написал:
Has anyone done this already? If so, which repo has them? If not, any advice for building the above?

https://github.com/playframework/playframework/pull/2470

понедельник, 2 мая 2016 г., 6:23:48 UTC+3 пользователь Michael Slinn написал:
I'd *really* like to move our app from Play 2.2.6 & Scala 2.10 to something more current. The problem we face is that many dependencies, including Play, are not available for both Scala 2.10 and Scala 2.11. That makes upgrading incredibly difficult, as massive changes ripple throughout the webapp and it would probably not compile until person-weeks of effort are expended. "Big Bang" upgrades are expensive and risky.

You *really* should consider upgrading to Play 2.3 first, then to Scala 2.11, then to Play 2.4, and only then to Play 2.5. If you are contemplating doing 2.2 to 2.5 upgrade in one step, then good luck with that.

Mike Slinn

unread,
May 2, 2016, 2:17:22 AM5/2/16
to play-fr...@googlegroups.com
Thanks for the link to the pull request. I cannot tell if the patch was
for Play 2.3 or Play 2.2.6, so I wonder if it will be useful to me.
Also, are there instructions for building all the jars?

I wish the upgrade process were as simple as you describe. Upgrading my
project's dependencies to Play 2.3 and Scala 2.11 in one step is also
problematic. It would be somewhat easier to first upgrade to Scala 2.11,
then upgrade Play.

Mike

Naftoli Gugenheim

unread,
May 2, 2016, 2:45:54 AM5/2/16
to play-fr...@googlegroups.com
Well, then I guess I can't help you.
 

Thanks,

Mike

--
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.

alex s

unread,
May 2, 2016, 2:49:13 AM5/2/16
to play-framework

понедельник, 2 мая 2016 г., 9:17:22 UTC+3 пользователь Michael Slinn написал:
Thanks for the link to the pull request. I cannot tell if the patch was
for Play 2.3 or Play 2.2.6, so I wonder if it will be useful to me.
Also, are there instructions for building all the jars?

For what it's worth, there is actually a documentation page on that: https://www.playframework.com/documentation/2.2.x/BuildingFromSource .

понедельник, 2 мая 2016 г., 9:17:22 UTC+3 пользователь Michael Slinn написал:
Upgrading my project's dependencies to Play 2.3 and Scala 2.11 in one step is also problematic. 
It would be somewhat easier to first upgrade to Scala 2.11, then upgrade Play.

I explicitly did suggest doing that in separate steps. Play 2.3 is cross compiled for both Scala 2.10 and 2.11, so dependencies shouldn't be a problem unless they are no longer maintained and somehow incompatible with Play 2.3, in which case they are probably not available for Scala 2.11.

James Roper

unread,
May 2, 2016, 3:02:33 AM5/2/16
to play-framework
Adding the cross build support to Play so that Play 2.3 could build against both Scala 2.10 and 2.11 was no small feat - while the changes needed to the Play code base itself were small so that it would compile against Scala 2.11, making it so that we could actually release it against both was a huge effort, and one that actually had a lot of issues that took us months to iron out.  Given that Play 2.2 is out of support, and the big risk associated with backporting the changes, it's not something that we're going to do.  I would recommend doing your own private build of Play 2.2 with Scala 2.11, releasing to your own private repository.

--
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.

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



--
James Roper
Software Engineer

Lightbend – Build reactive apps!
Twitter: @jroper

Greg Methvin

unread,
May 2, 2016, 3:58:27 AM5/2/16
to play-framework
On Sun, May 1, 2016 at 11:17 PM, Mike Slinn <msl...@gmail.com> wrote:
I wish the upgrade process were as simple as you describe. Upgrading my project's dependencies to Play 2.3 and Scala 2.11 in one step is also problematic. It would be somewhat easier to first upgrade to Scala 2.11, then upgrade Play.

I would not recommend doing it in one step, but you're likely to have a much easier time doing the Play 2.3 upgrade first with Scala 2.10 and then doing the Scala 2.11 upgrade. Are there specific changes in 2.3 that make the upgrade especially difficult?

--
Greg Methvin
Senior Software Engineer

Dominik Dorn

unread,
May 2, 2016, 7:10:20 AM5/2/16
to play-framework
As the others mentioned, do it like this:

1. Migrate to Play 2.3 with Scala 2.10
2. Migrate to Scala 2.11
3. go forward into a bright future with new Play releases.


Reply all
Reply to author
Forward
0 new messages