You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2020/04/01 08:22:35 UTC

[flink-statefun] 02/05: [FLINK-16902] [legal] Exclude duplicate licenses in statefun-flink-distribution

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

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

commit 608e111a33686db75866e43bfa785f4a94345d1b
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Wed Apr 1 08:02:25 2020 +0800

    [FLINK-16902] [legal] Exclude duplicate licenses in statefun-flink-distribution
    
    Duplicate licenses are being pulled in. We use the
    ApacheLicenseResourceTransformer to remove all duplicates, and have our
    own license included explicitly.
    
    All non-ASLv2 licenses are manually bundled under META-INF/licenses.
---
 statefun-flink/statefun-flink-distribution/pom.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/statefun-flink/statefun-flink-distribution/pom.xml b/statefun-flink/statefun-flink-distribution/pom.xml
index 125d7b1..3e0f5ff 100644
--- a/statefun-flink/statefun-flink-distribution/pom.xml
+++ b/statefun-flink/statefun-flink-distribution/pom.xml
@@ -171,6 +171,15 @@ under the License.
                                 <!-- required to aggregate all the META-INF/services files -->
                                 <transformer
                                         implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
+                                <!-- remove all duplicate licenses -->
+                                <transformer
+                                        implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer">
+                                </transformer>
+                                <!-- explicitly include our LICENSE file, located at project root dir -->
+                                <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
+                                    <resource>META-INF/LICENSE</resource>
+                                    <file>${basedir}/../../LICENSE</file>
+                                </transformer>
                                 <transformer
                                         implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
                                     <projectName>Apache Flink Stateful Functions (flink-statefun)</projectName>