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

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


The following commit(s) were added to refs/heads/master by this push:
     new f0e0f567c0d HBASE-29405 Run spotless:apply with java 17 when creating 
release (#7116)
f0e0f567c0d is described below

commit f0e0f567c0df5013add6e77c903299a9e9c213f0
Author: Duo Zhang <[email protected]>
AuthorDate: Wed Jun 25 04:54:31 2025 +0800

    HBASE-29405 Run spotless:apply with java 17 when creating release (#7116)
    
    Signed-off-by: Tak Lon (Stephen) Wu <[email protected]>
    Signed-off-by: Peng Lu <[email protected]>
---
 dev-support/create-release/release-util.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-support/create-release/release-util.sh 
b/dev-support/create-release/release-util.sh
index 7141ccd32f2..13226fbed9c 100755
--- a/dev-support/create-release/release-util.sh
+++ b/dev-support/create-release/release-util.sh
@@ -887,7 +887,8 @@ function get_hadoop3_version() {
 # For 2.x, the generated CHANGES.md and RELEASENOTES.md may have lines end 
with whitespace and
 # case spotless:check failure, so we should run spotless:apply before 
committing
 function maven_spotless_apply() {
-  "${MVN[@]}" spotless:apply
+  # our spotless plugin version requires at least java 11 to run, so we use 
java 17 here
+  JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64" "${MVN[@]}" spotless:apply
 }
 
 function git_add_poms() {

Reply via email to