Google Groups

Play 2.3.0-RC1 released!


James Roper May 7, 2014 10:11 PM
Posted in group: play-framework

The Play team is pleased to announce the first release candidate for Play 2.3.0. This release candidate is a feature complete version of Play 2.3.0, but it may have bugs in it. If it has any serious bugs then we’ll put out another release candidate with fixes. Otherwise this release will become Play 2.3.0.


We encourage the Play community to download this release candidate and test it out. See further down this email for instructions.


What’s new in Play 2.3


  1. Introducing the activator command. You can use activator exactly like you would use play, but Activator brings new features too. (More about the Activator change.)

  2. Better tooling for static assets. Play now uses sbt-web which gives faster asset processing, more features, and better extensibility.

  3. Support for Java 8 (and continued support for Java 6 and 7).

  4. Better Java performance. Simple Java controllers give 40–90% better throughput. (Thanks to YourKit for sponsoring licenses.)

  5. Support for Scala 2.11 (and continued support for Scala 2.10).

  6. Anorm enhancements: SQL string interpolation, multi-value parameters, new types, and more.

  7. Web Services enhancements: separate client, SSL configuration, and more.

  8. Play templates have become Twirl templates: separate project, new sbt plugin, still excellent integration with Play

  9. Actors for WebSockets

  10. Custom SSLEngine for HTTPS

  11. Asset performance: faster serving, better caching.

  12. One Result to rule them all: all the result types which were deprecated in 2.2 are now gone and only Result remains.

  13. Lots of bug fixes. :)


For details see the Play 2.3 Highlights and the Play 2.3 Migration Guide.


Testing out Play 2.3


You can help out by testing this release candidate. Discuss issues on the mailing list—use a subject starting with [2.3.0-RC1]—or report bugs on Github.


Using Play 2.3 in a new project


We will use Activator to create a new project from a Play 2.3 template.


Command line instructions


  1. Download the Activator minimal distribution (1MB).

  2. Run activator new.

  3. Enter one of the following template names:

  4. Enter a name for your new project.

  5. Change to the the project directory.

  6. Type activator to reach the console. [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]

  7. Use the compile, run, test, etc commands to build and run the project.


Activator UI instructions


Most Activator templates include a tutorial that can be viewed from within the Activator UI. The play-2.3-highlights template has a tutorial that showcases the new features of Play 2.3.


  1. Download the Activator minimal distribution (1MB)

  2. Run activator new.

  3. Enter one of the following template names:

  4. Enter a name for your new project.

  5. Change to the the project directory.

  6. Type activator ui to view the project in a the Activator UI [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]

  7. Follow the tutorial on the right of the screen or use the buttons on the left to interact with the project.


Using Play 2.3 in an existing project


See the Play 2.3 Migration Guide for complete instructions on changing your existing project to use Play 2.3.


Known Issues


  1. If there are a large number of assets to be processed by sbt-coffeescript, sbt-less or sbt-jshint then a timeout can occur during asset compilation when using the default JavaScript engine (Trireme). If this occurs then “set JsEngineKeys.parallelism := 1” or use Node instead of Trireme (export SBT_OPTS="$SBT_OPTS -Dsbt.jse.engineType=Node").


Thanks

Play Team


--
James Roper
Software Engineer