Skip to content

Commit

Permalink
Bump to java 17 (#391)
Browse files Browse the repository at this point in the history
* Bump to java 17
  • Loading branch information
worldtiki authored Oct 9, 2021
1 parent b937e56 commit 2861b32
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: AdoptOpenJDK/install-jdk@v1
- name: Setup Java
uses: actions/setup-java@v2
with:
version: '16'
architecture: x64
distribution: 'temurin'
java-version: '17'

- name: Build with Maven
run: ./mvnw clean package
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: AdoptOpenJDK/install-jdk@v1
with:
version: '16'
architecture: x64
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Build with Maven
run: ./mvnw verify
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder image
FROM adoptopenjdk/openjdk16:jdk-16.0.1_9-debian as build
FROM eclipse-temurin:17_35-jdk@sha256:a576b23ab2bdcf3746b10ce9a83004798bf4d9bc9d62d926ffe2c987a7dd3c2b as build

RUN jlink \
--module-path /opt/java/jmods \
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>

<properties>
<java.version>16</java.version>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<aws-java-sdk.version>1.12.78</aws-java-sdk.version>
Expand Down

0 comments on commit 2861b32

Please sign in to comment.