diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8e21a946cc..2d0cbcce1d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,7 +22,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Java CI with Maven +name: CI on: push: @@ -31,17 +31,28 @@ on: branches: [ "master" ] jobs: - build: - + build-8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' + cache: maven + - name: build (8) + run: mvn -T 8 clean install --no-transfer-progress -B -V + + build-11: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v3 - with: - java-version: '8' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn clean install --no-transfer-progress -B -V + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: build (11) + run: mvn -T 8 clean install -P ranger-jdk11,!all,!linux --no-transfer-progress -B -V diff --git a/pom.xml b/pom.xml index 2ca6ed899e..23bf434572 100644 --- a/pom.xml +++ b/pom.xml @@ -336,7 +336,7 @@ ranger-jdk11 - 11 + 11