RANGER-4752: Enable jdk 11 builds on PRs and merges to master (#305)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 8e21a94..2d0cbcc 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 @@
branches: [ "master" ]
jobs:
- build:
-
+ build-8:
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 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@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 2ca6ed8..23bf434 100644
--- a/pom.xml
+++ b/pom.xml
@@ -336,7 +336,7 @@
<profile>
<id>ranger-jdk11</id>
<activation>
- <jdk>11</jdk>
+ <jdk>11</jdk>
</activation>
<modules>
<!-- ranger-admin requirements -->