playframework/Play20 — pull request #538 by deansher (2012-11-13 15:54:07+00:00)
Title: "dist" command should package all jars (2)

Replacement for pull request "535":https://github.com/playframework/Play20/pull/535 based on a more recent master commit. Here is the original description:

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.