Skip to content

Commit

Permalink
Update to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek committed Oct 31, 2023
1 parent c3f73f3 commit 9c9e759
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 14 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
- macos-12
runs-on: ${{ matrix.os }}

env:
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 21

steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -30,12 +34,12 @@ jobs:
run: |
mongo --eval "db.version()"
- name: Set up JDK 17 (Temurin)
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: 'maven'

- name: Compile
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

env:
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 17
JAVA_VERSION: 21

steps:
- name: Checkout repository
Expand All @@ -39,7 +39,7 @@ jobs:

env:
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 17
JAVA_VERSION: 21

steps:
- name: Checkout repository
Expand All @@ -66,7 +66,7 @@ jobs:

env:
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 17
JAVA_VERSION: 21

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

env:
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 17
JAVA_VERSION: 21

steps:
- name: Checkout repository
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Switched to Java 21 (LTS)


## [1.17.1]

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# THE SOFTWARE.
#

FROM eclipse-temurin:17-jdk-focal
FROM eclipse-temurin:21-jdk-alpine

WORKDIR /fdp

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
################################################################################
# BUILD STAGE
FROM maven:3-eclipse-temurin-17-focal as builder
FROM maven:3-eclipse-temurin-21-alpine as builder

WORKDIR /builder

Expand All @@ -32,7 +32,7 @@ RUN mvn -q -B -U -ff -DskipTests package

################################################################################
# RUN STAGE
FROM eclipse-temurin:17-jdk-focal
FROM eclipse-temurin:21-jdk-alpine

WORKDIR /fdp

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ e.g. [app.fairdatapoint.org/swagger-ui.html](https://app.fairdatapoint.org/swagg

### Technology Stack

- **Java** (JDK 17)
- **Java** (JDK 21)
- **MongoDB** (4.2)
- **Maven** (3.2.5 or higher)
- **Docker** (19.03.0-ce or higher) - *for building Docker image only*
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Maven -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>

<!-- Project related -->
<spring.rdf.migration.version>1.2.0.RELEASE</spring.rdf.migration.version>
Expand Down

0 comments on commit 9c9e759

Please sign in to comment.