Skip to content

Commit

Permalink
global: migrate to java17
Browse files Browse the repository at this point in the history
  • Loading branch information
rekt-hard committed Nov 9, 2023
1 parent 5ed3e32 commit 67421d8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .ci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pipelines:
deploy:
enabled: false
maven:
imageTag: jdk-11
imageTag: jdk-17
stages:
publish:
enabled: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 11.0.2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11.0
java-version: 17.0

- name: Publish to GitHub packages
run: mvn -B deploy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Setup Maven Action
uses: s4u/[email protected]
with:
java-version: '11'
maven-version: '3.8.2'
java-version: '17'
maven-version: '3.9.5'

- name: Build with Maven
run: mvn -B clean install
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Create a first stage container to build the application, this container image will be dropped once
# the runner is built
FROM adoptopenjdk/maven-openjdk11 as builder
FROM maven:3.9.5-eclipse-temurin-17-alpine as builder

# This Dockerfile uses labels from the label-schema namespace from http://label-schema.org/rc1/
LABEL maintainer="[email protected]" \
Expand Down Expand Up @@ -30,7 +30,7 @@ RUN mvn -Duser.home=$BUILD_HOME -B package -DskipTests -Dquarkus.profile=${BUILD
# Create a second stage container which will only contain the runtime binaries without build dependencies
FROM rockylinux:8.5 as runner

ARG JAVA_PACKAGE=java-11-openjdk-headless
ARG JAVA_PACKAGE=java-17-openjdk-headless
ARG RUN_JAVA_VERSION=1.3.8

# path to copy built binaries from builder container
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

<properties>
<surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.parameters>true</maven.compiler.parameters>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<compiler-plugin.version>3.11.0</compiler-plugin.version>
<quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>2.16.2.Final</quarkus.platform.version>
Expand Down

0 comments on commit 67421d8

Please sign in to comment.