Skip to content

Commit

Permalink
[Flink-K8s-V2] Create Shaded module for flink-kubernetes-operator-api…
Browse files Browse the repository at this point in the history
… dependency (#2909)

* Shaded module for flink-kubernetes-operator-api dependency #2880

* Supplement the license declaration for flink shaded.
  • Loading branch information
Al-assad authored Jul 29, 2023
1 parent b71e094 commit bd66dfe
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist-material/release-docs/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ The text of each license is the standard Apache 2.0 license. https://www.apache.
https://mvnrepository.com/artifact/org.apache.flink/flink-table-planner_2.12/1.14.4 Apache-2.0
https://mvnrepository.com/artifact/org.apache.flink/flink-table-runtime_2.12/1.14.4 Apache-2.0
https://mvnrepository.com/artifact/org.apache.flink/force-shading/1.8.1 Apache-2.0
https://mvnrepository.com/artifact/org.apache.flink/flink-kubernetes-operator-api_2.12/1.5.0 Apache-2.0
https://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-jcache_1.0_spec/1.0-alpha-1 Apache-2.0
https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client-runtime/3.3.4 Apache-2.0
https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client-api/3.3.4 Apache-2.0
Expand Down
1 change: 1 addition & 0 deletions streampark-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<modules>
<module>streampark-shaded-slf4j</module>
<module>streampark-shaded-jackson</module>
<module>streampark-shaded-flink-kubernetes-operator</module>
</modules>

<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.streampark</groupId>
<artifactId>streampark-shaded</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>streampark-shaded-flink-kubernetes-operator-api</artifactId>
<name>StreamPark : Shaded Flink K8s Operator API</name>

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-kubernetes-operator-api</artifactId>
<version>1.5.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml
</dependencyReducedPomLocation>
<artifactSet>
<includes>
<include>org.apache.flink:*</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.apache.flink</pattern>
<shadedPattern>${streampark.shaded.package}.org.apache.flink</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

0 comments on commit bd66dfe

Please sign in to comment.