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

liugddx pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 3078d78f33 [Improvment][Build] Provide option to disable source jar 
creation. (#7680)
3078d78f33 is described below

commit 3078d78f3388b8ed2e12d82460ca93a0115d9234
Author: Mohammad Arshad <[email protected]>
AuthorDate: Wed Oct 9 14:26:00 2024 +0530

    [Improvment][Build] Provide option to disable source jar creation. (#7680)
---
 pom.xml                                                              | 1 +
 seatunnel-config/seatunnel-config-base/pom.xml                       | 2 +-
 seatunnel-shade/seatunnel-arrow-5.0/pom.xml                          | 2 +-
 seatunnel-shade/seatunnel-guava/pom.xml                              | 2 +-
 seatunnel-shade/seatunnel-hadoop3-3.1.4-uber/pom.xml                 | 2 +-
 seatunnel-shade/seatunnel-hazelcast/seatunnel-hazelcast-base/pom.xml | 2 +-
 seatunnel-shade/seatunnel-jackson/pom.xml                            | 2 +-
 seatunnel-shade/seatunnel-janino/pom.xml                             | 2 +-
 seatunnel-shade/seatunnel-thrift-service/pom.xml                     | 2 +-
 9 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/pom.xml b/pom.xml
index 2e68cc62bc..e80dae9024 100644
--- a/pom.xml
+++ b/pom.xml
@@ -156,6 +156,7 @@
 
         <!-- prometheus simpleclient -->
         
<prometheus.simpleclient.version>0.16.0</prometheus.simpleclient.version>
+        <enableSourceJarCreation>true</enableSourceJarCreation>
 
     </properties>
 
diff --git a/seatunnel-config/seatunnel-config-base/pom.xml 
b/seatunnel-config/seatunnel-config-base/pom.xml
index 677b1d57ee..6c75e35cbd 100644
--- a/seatunnel-config/seatunnel-config-base/pom.xml
+++ b/seatunnel-config/seatunnel-config-base/pom.xml
@@ -53,7 +53,7 @@
                 <artifactId>maven-shade-plugin</artifactId>
                 <configuration>
                     <minimizeJar>true</minimizeJar>
-                    <createSourcesJar>true</createSourcesJar>
+                    
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                     <shadeSourcesContent>true</shadeSourcesContent>
                     <shadedArtifactAttached>false</shadedArtifactAttached>
                     
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git a/seatunnel-shade/seatunnel-arrow-5.0/pom.xml 
b/seatunnel-shade/seatunnel-arrow-5.0/pom.xml
index 08e805b6ce..f0d1f2b32b 100644
--- a/seatunnel-shade/seatunnel-arrow-5.0/pom.xml
+++ b/seatunnel-shade/seatunnel-arrow-5.0/pom.xml
@@ -78,7 +78,7 @@
                         <phase>package</phase>
                         <configuration>
                             <finalName>seatunnel-arrow-5.0</finalName>
-                            <createSourcesJar>true</createSourcesJar>
+                            
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                             <shadeSourcesContent>true</shadeSourcesContent>
                             
<shadedArtifactAttached>false</shadedArtifactAttached>
                             
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git a/seatunnel-shade/seatunnel-guava/pom.xml 
b/seatunnel-shade/seatunnel-guava/pom.xml
index 49b59017da..d37e667ccb 100644
--- a/seatunnel-shade/seatunnel-guava/pom.xml
+++ b/seatunnel-shade/seatunnel-guava/pom.xml
@@ -46,7 +46,7 @@
                         <phase>package</phase>
                         <configuration>
                             <finalName>seatunnel-guava</finalName>
-                            <createSourcesJar>true</createSourcesJar>
+                            
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                             <shadeSourcesContent>true</shadeSourcesContent>
                             
<shadedArtifactAttached>false</shadedArtifactAttached>
                             
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git a/seatunnel-shade/seatunnel-hadoop3-3.1.4-uber/pom.xml 
b/seatunnel-shade/seatunnel-hadoop3-3.1.4-uber/pom.xml
index be5ced9214..5b22bb67e8 100644
--- a/seatunnel-shade/seatunnel-hadoop3-3.1.4-uber/pom.xml
+++ b/seatunnel-shade/seatunnel-hadoop3-3.1.4-uber/pom.xml
@@ -67,7 +67,7 @@
                         <phase>package</phase>
                         <configuration>
                             <finalName>seatunnel-hadoop3-3.1.4-uber</finalName>
-                            <createSourcesJar>true</createSourcesJar>
+                            
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                             <shadeSourcesContent>true</shadeSourcesContent>
                             
<shadedArtifactAttached>false</shadedArtifactAttached>
                             
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git 
a/seatunnel-shade/seatunnel-hazelcast/seatunnel-hazelcast-base/pom.xml 
b/seatunnel-shade/seatunnel-hazelcast/seatunnel-hazelcast-base/pom.xml
index 085dd68161..bdd09a24ce 100644
--- a/seatunnel-shade/seatunnel-hazelcast/seatunnel-hazelcast-base/pom.xml
+++ b/seatunnel-shade/seatunnel-hazelcast/seatunnel-hazelcast-base/pom.xml
@@ -47,7 +47,7 @@
                 <artifactId>maven-shade-plugin</artifactId>
                 <configuration>
                     <minimizeJar>true</minimizeJar>
-                    <createSourcesJar>true</createSourcesJar>
+                    
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                     <shadeSourcesContent>true</shadeSourcesContent>
                     <shadedArtifactAttached>false</shadedArtifactAttached>
                     
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git a/seatunnel-shade/seatunnel-jackson/pom.xml 
b/seatunnel-shade/seatunnel-jackson/pom.xml
index b328e29ed4..6b1bccb069 100644
--- a/seatunnel-shade/seatunnel-jackson/pom.xml
+++ b/seatunnel-shade/seatunnel-jackson/pom.xml
@@ -63,7 +63,7 @@
                         <phase>package</phase>
                         <configuration>
                             <finalName>seatunnel-jackson</finalName>
-                            <createSourcesJar>true</createSourcesJar>
+                            
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                             <shadeSourcesContent>true</shadeSourcesContent>
                             
<shadedArtifactAttached>false</shadedArtifactAttached>
                             
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git a/seatunnel-shade/seatunnel-janino/pom.xml 
b/seatunnel-shade/seatunnel-janino/pom.xml
index a661a49845..a3cd366742 100644
--- a/seatunnel-shade/seatunnel-janino/pom.xml
+++ b/seatunnel-shade/seatunnel-janino/pom.xml
@@ -51,7 +51,7 @@
                         <phase>package</phase>
                         <configuration>
                             <finalName>seatunnel-janino</finalName>
-                            <createSourcesJar>true</createSourcesJar>
+                            
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                             <shadeSourcesContent>true</shadeSourcesContent>
                             
<shadedArtifactAttached>false</shadedArtifactAttached>
                             
<createDependencyReducedPom>false</createDependencyReducedPom>
diff --git a/seatunnel-shade/seatunnel-thrift-service/pom.xml 
b/seatunnel-shade/seatunnel-thrift-service/pom.xml
index 36b8d5aa61..0aa5702f4c 100644
--- a/seatunnel-shade/seatunnel-thrift-service/pom.xml
+++ b/seatunnel-shade/seatunnel-thrift-service/pom.xml
@@ -50,7 +50,7 @@
                         <phase>package</phase>
                         <configuration>
                             <finalName>seatunnel-thrift-service</finalName>
-                            <createSourcesJar>true</createSourcesJar>
+                            
<createSourcesJar>${enableSourceJarCreation}</createSourcesJar>
                             <shadeSourcesContent>true</shadeSourcesContent>
                             
<shadedArtifactAttached>false</shadedArtifactAttached>
                             
<createDependencyReducedPom>false</createDependencyReducedPom>

Reply via email to