Skip to content

Commit a5eafb7

Browse files
committed
HTM-1711: Upgrade to Java 25
set up java version and update documentation and workflow files
1 parent 48fc7cd commit a5eafb7

12 files changed

Lines changed: 29 additions & 30 deletions

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Copyright (C) 2024 B3Partners B.V.
22
#
33
# SPDX-License-Identifier: MIT
4-
FROM mcr.microsoft.com/devcontainers/java:21
4+
FROM mcr.microsoft.com/devcontainers/java:25
55

66
ARG INSTALL_MAVEN="true"
7-
ARG MAVEN_VERSION="3.9.12"
7+
ARG MAVEN_VERSION="3.9.13"
88

99
ARG INSTALL_GRADLE="false"
1010
ARG GRADLE_VERSION=""

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ facilitates collaboration, makes coding simpler, and ensures that best practices
1717

1818
# Development Environment
1919

20-
Tailormap API is written in **Java 21** using **GeoTools 34.x**, **Hibernate 7.2.x** and **Spring Boot 4.0.x** and
20+
Tailormap API is written in **Java 25** using **GeoTools 34.x**, **Hibernate 7.2.x** and **Spring Boot 4.0.x** and
2121
leverages **OpenApi 3.0.4**.
2222
Dependencies for this project are managed using Maven in the file `pom.xml` in the root of the repository.
2323
Code for this project is generated using Maven using the file `pom.xml` in the root of the repository.
@@ -29,7 +29,7 @@ Administrative REST controllers in the `org.tailormap.api.controller` package us
2929
Swagger annotations such as `@Operation` and `@ApiResponse`.
3030

3131
## Code Standards
32-
- **Java Version**: Use Java 21 features and syntax.
32+
- **Java Version**: Use Java 25 features and syntax.
3333
- **GeoTools**: Use GeoTools 34.x for geospatial data handling.
3434
- **Hibernate**: Use Hibernate 7.2.x for ORM and database interactions.
3535
- **Spring Boot**: Use Spring Boot 4.0.x for building RESTful APIs.

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ updates:
5353
labels:
5454
- infrastructure
5555
ignore:
56-
# stay on Java 21 for now
56+
# stay on Java 25 for now
5757
- dependency-name: "eclipse-temurin"
5858
versions:
59-
- ">= 22"
59+
- ">= 26"
6060

6161
- package-ecosystem: "docker-compose"
6262
directory: "/build/ci/"

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ concurrency:
66

77
env:
88
MAVEN_OPTS: -Djava.awt.headless=true
9-
MAVEN_VERSION: '3.9.12'
9+
MAVEN_VERSION: '3.9.13'
1010

1111
on:
1212
push:
@@ -51,7 +51,7 @@ jobs:
5151
- name: 'Set up JDK'
5252
uses: actions/setup-java@v5
5353
with:
54-
java-version: 21
54+
java-version: 25
5555
distribution: 'temurin'
5656
cache: 'maven'
5757

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: 'Set up JDK'
2323
uses: actions/setup-java@v5
2424
with:
25-
java-version: 21
25+
java-version: 25
2626
distribution: 'temurin'
2727
cache: 'maven'
2828

.github/workflows/macos-maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permissions:
55

66
env:
77
MAVEN_OPTS: -Djava.awt.headless=true
8-
MAVEN_VERSION: '3.9.12'
8+
MAVEN_VERSION: '3.9.13'
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
build:
19-
name: 'Build w/ Java 21'
19+
name: 'Build'
2020
runs-on: macos-latest
2121
steps:
2222
- uses: actions/checkout@v6
@@ -31,7 +31,7 @@ jobs:
3131
- name: 'Set up JDK'
3232
uses: actions/setup-java@v5
3333
with:
34-
java-version: 21
34+
java-version: 25
3535
distribution: 'temurin'
3636

3737
- name: 'Set up Maven'

.github/workflows/owasp-dependency-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'OWASP'
22

33
env:
44
MAVEN_OPTS: -Djava.awt.headless=true
5-
MAVEN_VERSION: '3.9.12'
5+
MAVEN_VERSION: '3.9.13'
66

77
concurrency: # More info: https://stackoverflow.com/a/68422069/253468
88
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/setup-java@v5
3030
with:
3131
distribution: 'temurin'
32-
java-version: 21
32+
java-version: 25
3333
cache: 'maven'
3434

3535
- name: 'Set up Maven'

.github/workflows/qa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Ubuntu QA Maven build'
22

33
env:
44
MAVEN_OPTS: -Djava.awt.headless=true
5-
MAVEN_VERSION: '3.9.12'
5+
MAVEN_VERSION: '3.9.13'
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
@@ -34,7 +34,7 @@ jobs:
3434
- name: 'Set up JDK'
3535
uses: actions/setup-java@v5
3636
with:
37-
java-version: 21
37+
java-version: 25
3838
distribution: 'temurin'
3939
cache: 'maven'
4040

.github/workflows/trivy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Trivy Security Scan'
22

33
env:
44
MAVEN_OPTS: -Djava.awt.headless=true
5-
MAVEN_VERSION: '3.9.12'
5+
MAVEN_VERSION: '3.9.13'
66

77
on: # use pull request so this workflow dos not fail when triggered by dependabot PR's
88
pull_request:
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-java@v5
2626
with:
2727
distribution: 'temurin'
28-
java-version: 21
28+
java-version: 25
2929
cache: 'maven'
3030

3131
- name: 'Set up Maven'

.github/workflows/ubuntu-maven.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ permissions:
66

77
env:
88
MAVEN_OPTS: -Djava.awt.headless=true
9-
MAVEN_VERSION: '3.9.12'
10-
JAVA_VERSION: '21'
9+
MAVEN_VERSION: '3.9.13'
10+
JAVA_VERSION: '25'
1111

1212
concurrency:
1313
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
@@ -24,7 +24,7 @@ on:
2424

2525
jobs:
2626
build:
27-
name: Build w/ Java 21
27+
name: Build
2828
runs-on: ubuntu-latest
2929
permissions:
3030
contents: read
@@ -77,7 +77,6 @@ jobs:
7777
permissions:
7878
contents: read
7979
packages: read
80-
# actions: write
8180
if: ${{ github.author != 'dependabot[bot]' }}
8281
needs: build
8382
steps:

0 commit comments

Comments
 (0)