Skip to content

Commit 3fab587

Browse files
authored
RANGER-4752: Enable jdk 11 builds on PRs and merges to master (apache#305)
1 parent a1dc832 commit 3fab587

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.github/workflows/maven.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# separate terms of service, privacy policy, and support
2323
# documentation.
2424

25-
name: Java CI with Maven
25+
name: CI
2626

2727
on:
2828
push:
@@ -31,17 +31,28 @@ on:
3131
branches: [ "master" ]
3232

3333
jobs:
34-
build:
35-
34+
build-8:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Set up JDK 8
39+
uses: actions/setup-java@v4
40+
with:
41+
java-version: '8'
42+
distribution: 'temurin'
43+
cache: maven
44+
- name: build (8)
45+
run: mvn -T 8 clean install --no-transfer-progress -B -V
46+
47+
build-11:
3648
runs-on: ubuntu-latest
37-
3849
steps:
39-
- uses: actions/checkout@v3
40-
- name: Set up JDK 8
41-
uses: actions/setup-java@v3
42-
with:
43-
java-version: '8'
44-
distribution: 'temurin'
45-
cache: maven
46-
- name: Build with Maven
47-
run: mvn clean install --no-transfer-progress -B -V
50+
- uses: actions/checkout@v4
51+
- name: Set up JDK 11
52+
uses: actions/setup-java@v4
53+
with:
54+
java-version: '11'
55+
distribution: 'temurin'
56+
cache: maven
57+
- name: build (11)
58+
run: mvn -T 8 clean install -P ranger-jdk11,!all,!linux --no-transfer-progress -B -V

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
<profile>
337337
<id>ranger-jdk11</id>
338338
<activation>
339-
<jdk>11</jdk>
339+
<jdk>11</jdk>
340340
</activation>
341341
<modules>
342342
<!-- ranger-admin requirements -->

0 commit comments

Comments
 (0)