cloud-fan opened a new pull request, #53892:
URL: https://github.com/apache/spark/pull/53892

   ### What changes were proposed in this pull request?
   
   Updated the `init_java` function in `release-util.sh` to auto-detect and set 
the appropriate Java version based on the Spark version being built:
   - Spark < 4.0: Uses Java 8
   - Spark >= 4.0: Uses Java 17
   
   ### Why are the changes needed?
   
   This allows a single Docker image (with multiple Java versions installed) to 
build all Spark versions. Combined with updates to the master branch's 
Dockerfile to install both Java 8 and 17, this eliminates the need to maintain 
separate Dockerfiles for each branch.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Manual testing by building releases with the updated scripts.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes. cursor 2.3.41


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to