Skip to content

Commit 4732fb2

Browse files
RANGER-4076: Remove JDK8/JDK11 support and Add JDK17 build support
1 parent 60fcdcf commit 4732fb2

1 file changed

Lines changed: 11 additions & 40 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
3434

3535
jobs:
36-
build-8:
36+
build-17:
3737
runs-on: ubuntu-22.04
3838
timeout-minutes: 60
3939
steps:
@@ -47,12 +47,12 @@ jobs:
4747
key: maven-repo-${{ hashFiles('**/pom.xml') }}
4848
restore-keys: |
4949
maven-repo-
50-
- name: Set up JDK 8
50+
- name: Set up JDK 17
5151
uses: actions/setup-java@v5
5252
with:
53-
java-version: '8'
53+
java-version: '17'
5454
distribution: 'temurin'
55-
- name: build (8)
55+
- name: build (17)
5656
run: mvn -T 8 clean verify --no-transfer-progress -B -V
5757

5858
- name: run code coverage
@@ -69,49 +69,20 @@ jobs:
6969
- name: Upload artifacts
7070
uses: actions/upload-artifact@v7
7171
with:
72-
name: target-8
73-
path: target/*
74-
75-
build-11:
76-
needs:
77-
- build-8
78-
runs-on: ubuntu-22.04
79-
timeout-minutes: 60
80-
steps:
81-
- uses: actions/checkout@v6
82-
- name: Cache for maven dependencies
83-
uses: actions/cache/restore@v5
84-
with:
85-
path: |
86-
~/.m2/repository/*/*/*
87-
!~/.m2/repository/org/apache/ranger
88-
key: maven-repo-${{ hashFiles('**/pom.xml') }}
89-
restore-keys: |
90-
maven-repo-
91-
- name: Set up JDK 11
92-
uses: actions/setup-java@v5
93-
with:
94-
java-version: '11'
95-
distribution: 'temurin'
96-
- name: build (11)
97-
run: mvn -T 8 clean verify -pl '!knox-agent' --no-transfer-progress -B -V
98-
- name: Upload artifacts
99-
uses: actions/upload-artifact@v7
100-
with:
101-
name: target-11
72+
name: target-17
10273
path: target/*
10374

10475
services-docker-build:
10576
needs:
106-
- build-8
77+
- build-17
10778
runs-on: ubuntu-24.04 # bumping os version for more disk space
10879
timeout-minutes: 60 # bumping timeout to allow containers to come up
10980
steps:
11081
- uses: actions/checkout@v6
111-
- name: Download build-8 artifacts
82+
- name: Download build-17 artifacts
11283
uses: actions/download-artifact@v8
11384
with:
114-
name: target-8
85+
name: target-17
11586

11687
- name: Copy artifacts for docker build
11788
run: |
@@ -177,15 +148,15 @@ jobs:
177148
178149
plugins-docker-build:
179150
needs:
180-
- build-8
151+
- build-17
181152
runs-on: ubuntu-24.04 # bumping os version for more disk space
182153
timeout-minutes: 60 # bumping timeout to allow containers to come up
183154
steps:
184155
- uses: actions/checkout@v6
185-
- name: Download build-8 artifacts
156+
- name: Download build-17 artifacts
186157
uses: actions/download-artifact@v8
187158
with:
188-
name: target-8
159+
name: target-17
189160

190161
- name: Copy artifacts for docker build
191162
run: |

0 commit comments

Comments
 (0)