Skip to content

Commit 6a296f4

Browse files
committed
build with jdk11
1 parent 8da1cac commit 6a296f4

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,19 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
jdk: [ 8, 11, 12, 13, 14 ]
11+
jdk: [ 11, 17 ]
1212

1313
runs-on: ubuntu-latest
1414

1515
steps:
1616
- uses: actions/checkout@v2
1717

18-
- name: Cache maven deps
19-
uses: actions/cache@v2
20-
with:
21-
path: ~/.m2/repository
22-
key: maven-${{ matrix.jdk }}-${{ hashFiles('**/pom.xml') }}
23-
2418
- name: Select JDK
2519
uses: actions/setup-java@v2
2620
with:
2721
java-version: ${{ matrix.jdk }}
28-
distribution: adopt
22+
distribution: temurin
23+
cache: maven
2924

3025
# Run all the way to the install goal to have artifacts
3126
# in the local maven repo. we need them for later dependency

.github/workflows/release.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@ jobs:
1919
- name: Checkout repo
2020
uses: actions/checkout@v2
2121

22-
- name: Cache maven deps
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.m2/repository
26-
key: maven-1.8-${{ hashFiles('**/pom.xml') }}
27-
2822
- name: Select JDK
2923
uses: actions/setup-java@v2
3024
with:
31-
java-version: 8
32-
distribution: adopt
25+
java-version: 11
26+
distribution: temurin
27+
cache: maven
3328
server-id: ossrh
3429
server-username: OSSRH_USERNAME
3530
server-password: OSSRH_PASSWORD

0 commit comments

Comments
 (0)