Skip to content

Commit

Permalink
RANGER-4752: Enable jdk 11 builds on PRs and merges to master (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaab authored Mar 22, 2024
1 parent a1dc832 commit 3fab587
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven
name: CI

on:
push:
Expand All @@ -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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
<profile>
<id>ranger-jdk11</id>
<activation>
<jdk>11</jdk>
<jdk>11</jdk>
</activation>
<modules>
<!-- ranger-admin requirements -->
Expand Down

0 comments on commit 3fab587

Please sign in to comment.