Skip to content

[Feature] Migrate to Jakarta namespaces and update Java compatibility to 17 #57

[Feature] Migrate to Jakarta namespaces and update Java compatibility to 17

[Feature] Migrate to Jakarta namespaces and update Java compatibility to 17 #57

Workflow file for this run

name: Build Test PR
on:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21 ]
steps:
- uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java }}
distribution: temurin
server-id: central
- name: Cache local Maven repository
uses: actions/cache@v5
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Verify Java version
run: |
java -version
export MY_JAVA_VERSION=`java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1`
echo "Detected Java version: ${MY_JAVA_VERSION}"
if [[ ${MY_JAVA_VERSION} -lt 17 ]]; then
echo "Error: Java 17 or higher is required"
exit 1
fi
- name: Build with Maven
run: |
mvn --no-transfer-progress -B verify --file pom.xml