You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2026/03/31 02:46:30 UTC

(spark-kubernetes-operator) branch main updated: [SPARK-56299] Fix `Dockerfile` for `jdeps` to use 21

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

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 5b2300b  [SPARK-56299] Fix `Dockerfile` for `jdeps` to use 21
5b2300b is described below

commit 5b2300baaf2800f037d3b001123dee43a83bd102
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Mon Mar 30 19:46:21 2026 -0700

    [SPARK-56299] Fix `Dockerfile` for `jdeps` to use 21
    
    ### What changes were proposed in this pull request?
    
    This PR updates the `jdeps --multi-release` option from `17` to `21` in `build-tools/docker/Dockerfile`.
    
    ### Why are the changes needed?
    
    The project targets JDK 21+, so `jdeps` should analyze the multi-release JAR using the correct release version `21` instead of `17`.
    - #604
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manual review and Docker build verification.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (claude-opus-4-6)
    
    Closes #610 from dongjoon-hyun/SPARK-56299.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 build-tools/docker/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-tools/docker/Dockerfile b/build-tools/docker/Dockerfile
index e0726ac..8f67716 100644
--- a/build-tools/docker/Dockerfile
+++ b/build-tools/docker/Dockerfile
@@ -32,7 +32,7 @@ RUN apk add --no-cache binutils && \
     MODULES=$(jdeps \
       --ignore-missing-deps \
       --print-module-deps \
-      --multi-release 17 \
+      --multi-release 21 \
       /tmp/app.jar) && \
     MODULES="${MODULES},jdk.httpserver,jdk.unsupported,jdk.crypto.ec,jdk.security.auth,java.management" && \
     jlink \


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org