File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 7979
8080echo " Building binaries from $REPO /$BRANCH "
8181
82+ # Check Java version
83+ JAVA_VERSION=$( java -version 2>&1 | awk -F ' "' ' /version/ {print $2}' | awk -F ' .' ' {print $1}' )
84+ if [ " $JAVA_VERSION " -lt 17 ]; then
85+ echo " Error: Java version must be at least 17. Current version: $( java -version 2>&1 | head -n 1) "
86+ exit 1
87+ fi
88+ echo " Java version check passed: $JAVA_VERSION "
89+
8290WORKING_DIR=" $SCRIPT_DIR /comet-rm/workdir"
8391cp $SCRIPT_DIR /../cargo.config $WORKING_DIR
8492
@@ -194,6 +202,7 @@ LOCAL_REPO=$(mktemp -d /tmp/comet-staging-repo-XXXXX)
194202./mvnw " -Dmaven.repo.local=${LOCAL_REPO} " -P spark-3.4 -P scala-2.13 -DskipTests install
195203./mvnw " -Dmaven.repo.local=${LOCAL_REPO} " -P spark-3.5 -P scala-2.12 -DskipTests install
196204./mvnw " -Dmaven.repo.local=${LOCAL_REPO} " -P spark-3.5 -P scala-2.13 -DskipTests install
205+ ./mvnw " -Dmaven.repo.local=${LOCAL_REPO} " -P spark-4.0 -P scala-2.13 -DskipTests install
197206
198207echo " Installed to local repo: ${LOCAL_REPO} "
199208
Original file line number Diff line number Diff line change @@ -599,6 +599,9 @@ under the License.
599599 <parquet .version>1.13.1</parquet .version>
600600 <slf4j .version>2.0.6</slf4j .version>
601601 <shims .minorVerSrc>spark-3.4</shims .minorVerSrc>
602+ <java .version>11</java .version>
603+ <maven .compiler.source>${java.version} </maven .compiler.source>
604+ <maven .compiler.target>${java.version} </maven .compiler.target>
602605 </properties >
603606 </profile >
604607
@@ -611,6 +614,9 @@ under the License.
611614 <parquet .version>1.13.1</parquet .version>
612615 <slf4j .version>2.0.7</slf4j .version>
613616 <shims .minorVerSrc>spark-3.5</shims .minorVerSrc>
617+ <java .version>11</java .version>
618+ <maven .compiler.source>${java.version} </maven .compiler.source>
619+ <maven .compiler.target>${java.version} </maven .compiler.target>
614620 </properties >
615621 </profile >
616622
You can’t perform that action at this time.
0 commit comments