There was an error while loading. Please reload this page.
1 parent c1d5626 commit 887ca6eCopy full SHA for 887ca6e
1 file changed
.github/workflows/maven-pulls.yml
@@ -27,6 +27,15 @@ jobs:
27
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28
restore-keys: |
29
${{ runner.os }}-maven-
30
+ - name: Verify Java version
31
+ run: |
32
+ java -version
33
+ export MY_JAVA_VERSION=`java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1`
34
+ echo "Detected Java version: ${MY_JAVA_VERSION}"
35
+ if [[ ${MY_JAVA_VERSION} -lt 17 ]]; then
36
+ echo "Error: Java 17 or higher is required"
37
+ exit 1
38
+ fi
39
- name: Build with Maven
40
run: |
41
mvn --no-transfer-progress -B verify --file pom.xml
0 commit comments