Skip to content

Commit

Permalink
RHCLOUD-31350 Bump Java from 17 to 21 (RedHatInsights#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored Mar 13, 2024
1 parent fa9babc commit fafaac5
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/base-image-auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
- name: Set up skopeo
run: sudo apt-get install -y skopeo
- name: Check change
run: skopeo inspect docker://registry.access.redhat.com/ubi8/openjdk-17-runtime:latest | grep Digest > .baseimage
run: skopeo inspect docker://registry.access.redhat.com/ubi8/openjdk-21-runtime:latest | grep Digest > .baseimage
- name: Do change if the digest changed
run: |
git config user.name 'Update-a-Bot'
git config user.email '[email protected]'
git add -A
git commit -m "Update ubi8/openjdk-17-runtime:latest image digest" || echo "No changes to commit"
git commit -m "Update ubi8/openjdk-21-runtime:latest image digest" || echo "No changes to commit"
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
title: 'Update ubi8/openjdk-17-runtime:latest image digest'
title: 'Update ubi8/openjdk-21-runtime:latest image digest'
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
path: ~/.cache/yarn
# The cache key is changed every month to prevent unlimited growth.
key: yarn-cache-${{ steps.cache-key.outputs.date }}
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
java-version: 21
- name: Verify if admin-console changed
id: admin-console-changed
uses: tj-actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:
# The cache key is changed every month to prevent unlimited growth.
key: yarn-cache-${{ steps.cache-key.outputs.date }}

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
java-version: 21

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .rhcicd/sonarqube/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Image available at https://catalog.redhat.com/software/containers/ubi9/openjdk-17-runtime.
FROM registry.access.redhat.com/ubi9/openjdk-17
# Image available at https://catalog.redhat.com/software/containers/ubi9/openjdk-21-runtime.
FROM registry.access.redhat.com/ubi9/openjdk-21

# Switch to the root user to be able to install the required packages.
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-aggregator.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests -pl :notifications-aggregator -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-backend.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests -pl :notifications-backend -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-drawer.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-drawer -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-email.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-email -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-google-chat.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-google-chat -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-microsoft-teams.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-microsoft-teams -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-servicenow.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-servicenow -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-slack.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-slack -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-splunk.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-splunk -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-connector-webhook.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-webhook -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-engine.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests -pl :notifications-engine -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.notifications-recipients-resolver.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi8/openjdk-21:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-recipients-resolver -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
FROM registry.access.redhat.com/ubi8/openjdk-21-runtime:latest

# Update the base image packages
USER root
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<properties>
<enforcer-plugin.version>3.4.1</enforcer-plugin.version>
<maven-minimum-version>3.8.4</maven-minimum-version>
<java-version>17</java-version>
<java-version>21</java-version>
<compiler-plugin.version>3.12.1</compiler-plugin.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.source>${java-version}</maven.compiler.source>
Expand Down

0 comments on commit fafaac5

Please sign in to comment.