This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-shaded.git

commit 4c324d398172a861fde16825b8262ed0b16c61ec
Author: zentol <[email protected]>
AuthorDate: Mon Aug 28 13:40:08 2017 +0200

    (#25) Add profile to create shaded source-jars
---
 README.md |  6 ++++++
 pom.xml   | 22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/README.md b/README.md
index acffca5..05d4bb2 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,12 @@ The shaded dependencies contained here do not expose any 
transitive dependencies
 
 When using these dependencies it is recommended to work directly against the 
shaded namespaces.
 
+## Sources
+
+We currently do not release jars containing the shaded sources due to the 
unanswered legal questions raised 
[here](https://github.com/apache/flink-shaded/issues/25).
+
+However, it is possible to build these jars locally by cloning the repository 
and calling `mvn package -Dshade-sources`.
+
 ## About
 
 Apache Flink is an open source project of [The Apache Software 
Foundation](https://apache.org/) (ASF).
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 09183d5..8e84f7c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,6 +80,28 @@ under the License.
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>shade-sources</id>
+            <activation>
+                <property>
+                    <name>shade-sources</name>
+                </property>
+            </activation>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-shade-plugin</artifactId>
+                            <configuration combine.children="append">
+                                <createSourcesJar>true</createSourcesJar>
+                                <shadeSourcesContent>true</shadeSourcesContent>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
     </profiles>
 
     <build>

Reply via email to