As of play 1.2, a new dependency mechanism has been introduced to make the developers life much easier. It is based on Apache Ivy and thus does not require you to have an own repository. You can use all the existing infrastructure and libraries which are provided by the existing maven repositories.
The source code of the example is available at examples/chapter5/dependencies
.
After a new application has been created, you will find a conf/dependencies.yml
file in your application. The only dependency is the Play framework itself by default.
In Chapter 2 the recipe Writing your own renderRSS method as controller output showed how to write out RSS feeds with the Rome library. Rome was downloaded back then and put into the lib/
folder. When searching for Rome on a Maven repository search engine, you will find an entry like http://mvnrepository.com/artifact/rome/rome/0.9. All you need to is to extend the existing configuration to:
require:...