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 @@ -696,6 +696,9 @@ under the License.
696696 <parquet .version>1.13.1</parquet .version>
697697 <slf4j .version>2.0.6</slf4j .version>
698698 <shims .minorVerSrc>spark-3.4</shims .minorVerSrc>
699+ <java .version>11</java .version>
700+ <maven .compiler.source>${java.version} </maven .compiler.source>
701+ <maven .compiler.target>${java.version} </maven .compiler.target>
699702 </properties >
700703 </profile >
701704
@@ -708,6 +711,9 @@ under the License.
708711 <parquet .version>1.13.1</parquet .version>
709712 <slf4j .version>2.0.7</slf4j .version>
710713 <shims .minorVerSrc>spark-3.5</shims .minorVerSrc>
714+ <java .version>11</java .version>
715+ <maven .compiler.source>${java.version} </maven .compiler.source>
716+ <maven .compiler.target>${java.version} </maven .compiler.target>
711717 </properties >
712718 </profile >
713719
You can’t perform that action at this time.
0 commit comments