Skip to content

chore(backend): run on JDK 21 - #551

Merged
JuliusHenke merged 1 commit into
masterfrom
chore/jdk-21
Oct 8, 2026
Merged

JuliusHenke merged 1 commit into
masterfrom
chore/jdk-21

Conversation

@JuliusHenke

Copy link
Copy Markdown
Member

Increment B8: JDK 17 → 21 (LTS) for build, CI and the runtime image.

  • `backend/build.gradle.kts`: `sourceCompatibility` and `jvmTarget` 21; Jib base `eclipse-temurin:21-jre@sha256:cff19e62…` (multi-arch index with amd64 and arm64).
  • `backend-test.yml`, `backend-docker.yml`: `java-version: '21'`.
  • `backend/README.md`: JDK >= 21 for local development.

Deployment notes

  • The runtime image now runs Java 21. No config changes. Watch memory and GC after the first deploy (default GC stays G1).
  • Rollback: redeploy the previous image tag.

Verification

  • `./gradlew test` on JDK 21.0.12: 71 tests, 0 failures.
  • Built the image locally (`jibDockerBuild`) and started it against Postgres 18: Java 21.0.12, runs as UID 1000, Tomcat 10.1, app started in about 6s, Flyway ran.
  • Not verified: the CI workflows (will run on this PR) and arm64 image execution.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@JuliusHenke JuliusHenke added enhancement New feature or request backend deployment Operators must take action when deploying labels Oct 8, 2026
@JuliusHenke
JuliusHenke merged commit b8c6e90 into master Oct 8, 2026
5 of 6 checks passed
@JuliusHenke
JuliusHenke deleted the chore/jdk-21 branch October 8, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend deployment Operators must take action when deploying enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant