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

wenjin272 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git


The following commit(s) were added to refs/heads/main by this push:
     new 7423131ef [release][dist] Build release artifacts with JDK 21 and keep 
JDK 21 classes in thin JARs (#1295)
7423131ef is described below

commit 7423131ef1f771b340c73d22d4e98462d1de5156
Author: Sangkyoon Nam <[email protected]>
AuthorDate: Wed Oct 21 11:20:32 2026 +0900

    [release][dist] Build release artifacts with JDK 21 and keep JDK 21 classes 
in thin JARs (#1295)
    
    Generated-by: Claude Code 2.1.303 (Claude Opus 5.5)
---
 dist/common/pom.xml                    |  1 +
 dist/flink-1.20/pom.xml                |  1 +
 dist/flink-2.0/pom.xml                 |  1 +
 dist/flink-2.1/pom.xml                 |  1 +
 dist/flink-2.2/pom.xml                 |  1 +
 dist/flink-2.3/pom.xml                 |  1 +
 pom.xml                                |  2 +-
 tools/releasing/deploy_staging_jars.sh | 32 ++++----------------------------
 8 files changed, 11 insertions(+), 29 deletions(-)

diff --git a/dist/common/pom.xml b/dist/common/pom.xml
index 8635a004e..1a7cb0755 100644
--- a/dist/common/pom.xml
+++ b/dist/common/pom.xml
@@ -84,6 +84,7 @@ under the License.
                                     
<artifact>org.apache.flink:flink-agents-*</artifact>
                                     <excludes>
                                         
<exclude>org/apache/flink/agents/**</exclude>
+                                        
<exclude>META-INF/versions/*/org/apache/flink/agents/**</exclude>
                                     </excludes>
                                 </filter>
                             </filters>
diff --git a/dist/flink-1.20/pom.xml b/dist/flink-1.20/pom.xml
index 834c7ddbb..d48e2ee91 100644
--- a/dist/flink-1.20/pom.xml
+++ b/dist/flink-1.20/pom.xml
@@ -172,6 +172,7 @@ under the License.
                                     <artifact>*:*</artifact>
                                     <includes>
                                         
<include>org/apache/flink/agents/**</include>
+                                        
<include>META-INF/versions/*/org/apache/flink/agents/**</include>
                                     </includes>
                                 </filter>
                             </filters>
diff --git a/dist/flink-2.0/pom.xml b/dist/flink-2.0/pom.xml
index 75c938cc9..8d45ed7d5 100644
--- a/dist/flink-2.0/pom.xml
+++ b/dist/flink-2.0/pom.xml
@@ -111,6 +111,7 @@
                                     <artifact>*:*</artifact>
                                     <includes>
                                         
<include>org/apache/flink/agents/**</include>
+                                        
<include>META-INF/versions/*/org/apache/flink/agents/**</include>
                                     </includes>
                                 </filter>
                             </filters>
diff --git a/dist/flink-2.1/pom.xml b/dist/flink-2.1/pom.xml
index 122606b95..614949f50 100644
--- a/dist/flink-2.1/pom.xml
+++ b/dist/flink-2.1/pom.xml
@@ -111,6 +111,7 @@
                                     <artifact>*:*</artifact>
                                     <includes>
                                         
<include>org/apache/flink/agents/**</include>
+                                        
<include>META-INF/versions/*/org/apache/flink/agents/**</include>
                                     </includes>
                                 </filter>
                             </filters>
diff --git a/dist/flink-2.2/pom.xml b/dist/flink-2.2/pom.xml
index 812010b8f..d1af16a7b 100644
--- a/dist/flink-2.2/pom.xml
+++ b/dist/flink-2.2/pom.xml
@@ -126,6 +126,7 @@ under the License.
                                     <artifact>*:*</artifact>
                                     <includes>
                                         
<include>org/apache/flink/agents/**</include>
+                                        
<include>META-INF/versions/*/org/apache/flink/agents/**</include>
                                     </includes>
                                 </filter>
                             </filters>
diff --git a/dist/flink-2.3/pom.xml b/dist/flink-2.3/pom.xml
index 6858f7379..ca3d88a91 100644
--- a/dist/flink-2.3/pom.xml
+++ b/dist/flink-2.3/pom.xml
@@ -82,6 +82,7 @@ under the License.
                                     <artifact>*:*</artifact>
                                     <includes>
                                         
<include>org/apache/flink/agents/**</include>
+                                        
<include>META-INF/versions/*/org/apache/flink/agents/**</include>
                                     </includes>
                                 </filter>
                             </filters>
diff --git a/pom.xml b/pom.xml
index 2e6ce6fcb..1c785b7d0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -195,7 +195,7 @@ under the License.
                                         <!-- versions for certain build tools 
are enforced to match the CI setup -->
                                         <!-- the rules below should stay in 
sync with Flink Release wiki documentation and the CI scripts -->
                                         <requireJavaVersion>
-                                            
<version>[${target.java.version}.*,)</version>
+                                            <version>[21,22)</version>
                                         </requireJavaVersion>
                                     </rules>
                                 </configuration>
diff --git a/tools/releasing/deploy_staging_jars.sh 
b/tools/releasing/deploy_staging_jars.sh
index d288f9188..87f5ffe6f 100755
--- a/tools/releasing/deploy_staging_jars.sh
+++ b/tools/releasing/deploy_staging_jars.sh
@@ -35,41 +35,17 @@ if [[ `basename $CURR_DIR` != "tools" ]] ; then
   exit 1
 fi
 
-# Check JDK version - must be JDK 17
-JAVA_VERSION=$(java -version 2>&1 | head -1 | cut -d'"' -f2 | cut -d'.' -f1)
-if [[ "$JAVA_VERSION" != "17" ]]; then
-  echo "Error: JDK 17 is required for release. Current version: $(java 
-version 2>&1 | head -1)"
-  exit 1
-fi
-
 ###########################
 
 cd ..
 
-echo "=== Flink Agents Multi-JDK Release ==="
-echo "Using Java: $(java -version 2>&1 | head -1)"
+echo "=== Flink Agents Release ==="
+# The release profile enforces JDK 21 for the JVM that runs Maven.
+$MVN -version
 
 COMMON_OPTIONS="-Prelease,docs-and-source -DskipTests 
-DretryFailedDeploymentCount=10 $CUSTOM_OPTIONS"
 
-###########################
-# Phase 1: Build and deploy default version (JDK 17)
-###########################
-
-echo ""
-echo "=== Phase 1: Building and deploying default version (JDK 17 bytecode) 
==="
-echo ""
-
 $MVN clean deploy $COMMON_OPTIONS
 
-###########################
-# Phase 2: Build and deploy api module with jdk11 classifier
-###########################
-
-echo ""
-echo "=== Phase 2: Building and deploying flink-agents-api with jdk11 
classifier (JDK 11 bytecode) ==="
-echo ""
-
-$MVN deploy -pl api -Pjava-11-target $COMMON_OPTIONS
-
 echo ""
-echo "=== Release complete: Both default (JDK 17) and jdk11 classifier 
versions deployed ==="
+echo "=== Release complete ==="

Reply via email to