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

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


The following commit(s) were added to refs/heads/master by this push:
     new c375f4c  [hotfix] Package format-common to flink-csv/flink-json 
(#15394)
c375f4c is described below

commit c375f4cfd394c10b54110eac446873055b716b89
Author: Leonard Xu <xbjt...@163.com>
AuthorDate: Sat Mar 27 16:59:23 2021 +0800

    [hotfix] Package format-common to flink-csv/flink-json (#15394)
---
 flink-formats/flink-csv/pom.xml  | 37 ++++++++++++++++++++++++++++++++++---
 flink-formats/flink-json/pom.xml | 38 +++++++++++++++++++++++++++++++++++---
 2 files changed, 69 insertions(+), 6 deletions(-)

diff --git a/flink-formats/flink-csv/pom.xml b/flink-formats/flink-csv/pom.xml
index 3db3076..ce0565e 100644
--- a/flink-formats/flink-csv/pom.xml
+++ b/flink-formats/flink-csv/pom.xml
@@ -100,6 +100,31 @@ under the License.
                </dependency>
        </dependencies>
 
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-shade-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>shade-flink</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>shade</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <artifactSet>
+                                                               <includes>
+                                                                       
<include>org.apache.flink:flink-format-common</include>
+                                                               </includes>
+                                                       </artifactSet>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+
        <profiles>
                <!-- Create SQL Client uber jars by default -->
                <profile>
@@ -113,15 +138,21 @@ under the License.
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
-                                               
<artifactId>maven-jar-plugin</artifactId>
+                                               
<artifactId>maven-shade-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                
<phase>package</phase>
                                                                <goals>
-                                                                       
<goal>jar</goal>
+                                                                       
<goal>shade</goal>
                                                                </goals>
                                                                <configuration>
-                                                                       
<classifier>sql-jar</classifier>
+                                                                       
<artifactSet>
+                                                                               
<includes>
+                                                                               
        <include>org.apache.flink:flink-format-common</include>
+                                                                               
</includes>
+                                                                       
</artifactSet>
+                                                                       
<shadedArtifactAttached>true</shadedArtifactAttached>
+                                                                       
<shadedClassifierName>sql-jar</shadedClassifierName>
                                                                </configuration>
                                                        </execution>
                                                </executions>
diff --git a/flink-formats/flink-json/pom.xml b/flink-formats/flink-json/pom.xml
index a5217b7..87d48e8 100644
--- a/flink-formats/flink-json/pom.xml
+++ b/flink-formats/flink-json/pom.xml
@@ -108,6 +108,31 @@ under the License.
                </dependency>
        </dependencies>
 
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-shade-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>shade-flink</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>shade</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <artifactSet>
+                                                               <includes>
+                                                                       
<include>org.apache.flink:flink-format-common</include>
+                                                               </includes>
+                                                       </artifactSet>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+
        <profiles>
                <!-- Create SQL Client uber jars by default -->
                <profile>
@@ -121,15 +146,21 @@ under the License.
                                <plugins>
                                        <plugin>
                                                
<groupId>org.apache.maven.plugins</groupId>
-                                               
<artifactId>maven-jar-plugin</artifactId>
+                                               
<artifactId>maven-shade-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                
<phase>package</phase>
                                                                <goals>
-                                                                       
<goal>jar</goal>
+                                                                       
<goal>shade</goal>
                                                                </goals>
                                                                <configuration>
-                                                                       
<classifier>sql-jar</classifier>
+                                                                       
<artifactSet>
+                                                                               
<includes>
+                                                                               
        <include>org.apache.flink:flink-format-common</include>
+                                                                               
</includes>
+                                                                       
</artifactSet>
+                                                                       
<shadedArtifactAttached>true</shadedArtifactAttached>
+                                                                       
<shadedClassifierName>sql-jar</shadedClassifierName>
                                                                </configuration>
                                                        </execution>
                                                </executions>
@@ -138,4 +169,5 @@ under the License.
                        </build>
                </profile>
        </profiles>
+
 </project>

Reply via email to