Skip to content

Commit

Permalink
Upgrade to Java 21 (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianclay authored Jul 12, 2024
1 parent e3fc3e6 commit 91a2e25
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion developer-information.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements:

* JDK 17 - We develop the adaptor in Java with Spring Boot
* JDK 21 - We develop the adaptor in Java with Spring Boot
* Docker
* Version 38.2 of the SNOMED CT UK Edition monolith zip file.
See [First Installation](./OPERATING.md#populating-the-snomed-database) for instructions on how to download.
Expand Down
2 changes: 1 addition & 1 deletion docker/common-modules/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.8-jdk17 AS build
FROM gradle:8.8-jdk21 AS build
COPY --chown=gradle:gradle settings.gradle /home/gradle/service/
COPY --chown=gradle:gradle ./common /home/gradle/service/common
COPY --chown=gradle:gradle ./db-connector /home/gradle/service/db-connector
Expand Down
2 changes: 1 addition & 1 deletion docker/db-migration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.8-jdk17
FROM gradle:8.8-jdk21

COPY --chown=gradle:gradle settings.gradle /home/gradle/service/
COPY --chown=gradle:gradle ./common /home/gradle/service/common
Expand Down
4 changes: 2 additions & 2 deletions docker/gp2gp-translator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.8-jdk17 AS build
FROM gradle:8.8-jdk21 AS build
COPY --chown=gradle:gradle settings.gradle /home/gradle/service/
COPY --chown=gradle:gradle ./gp2gp-translator /home/gradle/service/gp2gp-translator
COPY --chown=gradle:gradle ./common /home/gradle/service/common
Expand All @@ -9,7 +9,7 @@ COPY --chown=gradle:gradle ./config /home/gradle/service/config
WORKDIR /home/gradle/service/gp2gp-translator
RUN gradle --build-cache bootJar

FROM eclipse-temurin:17-jre-jammy
FROM eclipse-temurin:21-jre-jammy

EXPOSE 8085

Expand Down
4 changes: 2 additions & 2 deletions docker/gpc-facade/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.8-jdk17 AS build
FROM gradle:8.8-jdk21 AS build
COPY --chown=gradle:gradle settings.gradle /home/gradle/service/
COPY --chown=gradle:gradle ./gpc-api-facade /home/gradle/service/gpc-api-facade
COPY --chown=gradle:gradle ./common /home/gradle/service/common
Expand All @@ -8,7 +8,7 @@ COPY --chown=gradle:gradle ./config /home/gradle/service/config
WORKDIR /home/gradle/service/gpc-api-facade
RUN gradle --build-cache bootJar

FROM eclipse-temurin:17-jre-jammy
FROM eclipse-temurin:21-jre-jammy

EXPOSE 8081

Expand Down
8 changes: 3 additions & 5 deletions getting-started-with-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Before cloning the project, we need to create a `.gitconfig` file.
run in order (inside the Ubuntu terminal)

```
sudo apt install openjdk-17-jdk
sudo apt install openjdk-21-jdk
sudo apt update
```
7. Now we need to configure JAVA_HOME variable
Expand All @@ -93,15 +93,13 @@ Before cloning the project, we need to create a `.gitconfig` file.
sudo update-alternatives --config java
sudo apt update
```
11. Use this command to check if JAVA17 is installed
11. Use this command to check if JAVA21 is installed
```
java -version
```
12. You should be presented with this:
```
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)
openjdk version "21.0.0"
```

13. To install unzip run in the Ubuntu Terminal
Expand Down
2 changes: 1 addition & 1 deletion test-suite/docker/activemq/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:17-jdk-alpine
FROM openjdk:21-jdk-alpine

ENV ACTIVEMQ_VERSION 5.16.3
ENV ACTIVEMQ apache-activemq-$ACTIVEMQ_VERSION
Expand Down
4 changes: 2 additions & 2 deletions test-suite/docker/mock-spine-mhs-outbound/DockerFile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:7.2.0-jdk17 AS build
FROM gradle:7.2.0-jdk21 AS build

COPY --chown=gradle:gradle ../mock-spine-mhs-outbound /home/gradle/mock-spine-mhs-outbound

Expand All @@ -10,7 +10,7 @@ FROM build AS package

RUN gradle --build-cache bootJar

FROM eclipse-temurin:17-jre
FROM eclipse-temurin:21-jre

EXPOSE 8086
EXPOSE 8443
Expand Down

0 comments on commit 91a2e25

Please sign in to comment.