0

I was wondering what the best approach would be to create a simple library project with playframework2 or sbt.

The project would be contain several java classes with no web dependencies, and would be included in a few different play projects as a library jar.

Is there a way to create a stripped down play or sbt project to do this that will create a small jar?

I saw there are sub-projects in play/sbt but this library project would be utilized in more than one application, and will likely be built and published to a maven repository as an artifact. Hopefully the project setup would easily be included in a continous build/integration environment.

Thanks in advance, Matt

1 Answer 1

2

A better way is to write a Play module. They are very easy to create. See this blog: http://www.objectify.be/wordpress/?p=363

To use the module, an apps' build.sbt or build.scala would include your module as a dependency.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.