You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter De Maeyer (JIRA)" <ji...@apache.org> on 2018/04/02 20:38:00 UTC

[jira] [Created] (MSHADE-285) It should be possible to shade test sources as a JAR

Peter De Maeyer created MSHADE-285:
--------------------------------------

             Summary: It should be possible to shade test sources as a JAR
                 Key: MSHADE-285
                 URL: https://issues.apache.org/jira/browse/MSHADE-285
             Project: Maven Shade Plugin
          Issue Type: Improvement
    Affects Versions: 3.1.0
            Reporter: Peter De Maeyer


The configuration option {{createSourcesJar}} allows to shade sources JAR, but there is no such option for test sources.

I see two solutions:
 # Extend the semantics of {{createSourcesJar}} such that, when combined with {{shadeTestJar}}, is also creates the _test_ sources JAR.
 # Introduce a new configuration option {{createTestSourcesJar}}, similar to {{createSourcesJar}}.

The former is very intuitive, but it lacks the flexibility to create a JAR, sources JAR, test JAR, but _no_ test sources JAR. The latter allows more flexibility.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)