playframework/Play20 — pull request #535 by deansher (2012-11-12 17:11:19+00:00)
Title: "dist" command should package all jars

This pull request addresses lighthouse ticket #851:

Play's current "dist" implementation takes its input from the packageBin task, which is defined as "produces a main artifact, such as a binary jar," and which only returns a single File. This is sometimes insufficient. For example, it does not work if a Play project wants to publish a separate jar with convenience functionality for its clients, while also consuming that separate jar itself at runtime.

I believe a better approach is for the "dist" command to take its input from the packagedArtifacts task, which is defined as "packages all artifacts for publishing and maps the Artifact definition to the generated file" and returns a Map[Artifact,File].

I have discussed this with Guillaume.