Skip to content

Commit 2861b32

Browse files
authored
Bump to java 17 (#391)
* Bump to java 17
1 parent b937e56 commit 2861b32

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
1618

17-
- uses: AdoptOpenJDK/install-jdk@v1
19+
- name: Setup Java
20+
uses: actions/setup-java@v2
1821
with:
19-
version: '16'
20-
architecture: x64
22+
distribution: 'temurin'
23+
java-version: '17'
2124

2225
- name: Build with Maven
2326
run: ./mvnw clean package

.github/workflows/maven.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v1
17-
- uses: AdoptOpenJDK/install-jdk@v1
1817
with:
19-
version: '16'
20-
architecture: x64
18+
fetch-depth: 0
19+
20+
- name: Setup Java
21+
uses: actions/setup-java@v2
22+
with:
23+
distribution: 'temurin'
24+
java-version: '17'
25+
2126
- name: Build with Maven
2227
run: ./mvnw verify

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Builder image
2-
FROM adoptopenjdk/openjdk16:jdk-16.0.1_9-debian as build
2+
FROM eclipse-temurin:17_35-jdk@sha256:a576b23ab2bdcf3746b10ce9a83004798bf4d9bc9d62d926ffe2c987a7dd3c2b as build
33

44
RUN jlink \
55
--module-path /opt/java/jmods \

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<version>1.0-SNAPSHOT</version>
1010

1111
<properties>
12-
<java.version>16</java.version>
12+
<java.version>17</java.version>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1414

1515
<aws-java-sdk.version>1.12.78</aws-java-sdk.version>

0 commit comments

Comments
 (0)