Skip to content

XDOCKER-432: Use the maximum officially supported version of Java in the Docker image - #114

Merged
tmortagne merged 1 commit into
masterfrom
XDOCKER-432
Nov 18, 2026
Merged

tmortagne merged 1 commit into
masterfrom
XDOCKER-432

Conversation

@tmortagne

Copy link
Copy Markdown
Member

Jira URL

https://jira.xwiki.org/browse/XDOCKER-432

Changes

Description

  • New updateJava task: for each cycle, reads xwiki.java.version.support from the cycle's xwiki-commons POM and moves tomcatImageTag.javaVersion to it, only if the tomcat:<tomcatVersion>-jre<java> tag exists on Docker Hub (and never backwards).
  • updateJava is chained in the release umbrella (after updateXWiki/updateJDBC), and the cycles it changes are smoke tested.
  • New httpExists helper, backed by an optional 404 handler in httpGet.
  • Applied it: 17, 18.4 and 18 move from tomcat:10-jre21 to tomcat:10-jre25; 16 stays on tomcat:9-jre21 (21 is the maximum supported by 16.10.x).

Clarifications

Screenshots & Video

N/A

Executed Tests

  • ./gradlew updateJava generate generateWorkflows: produced the expected versions.json and Dockerfile changes.
  • Second ./gradlew updateJava run: every cycle reported as already up to date.
  • Temporarily set a cycle to tomcatVersion 8: the task kept Java 21 and reported that tomcat:8-jre25 does not exist.
  • The images were not built or smoke tested locally (the Docker Build workflow builds them).

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None

🤖 Generated with Claude Code

…the Docker image

* Add an 'updateJava' task moving each cycle's base image to the highest Java version its XWiki version officially supports (the 'xwiki.java.version.support' property of its xwiki-commons POM), only once a Tomcat image exists for it
* Chain it in the 'release' umbrella so that a Java change is smoke tested like the other version updates
* Add an 'httpExists' helper (and an optional 404 handler to 'httpGet') to check that the Tomcat image tag exists on Docker Hub
* Move the 17, 18.4 and 18 cycles to Java 25 (16 stays on Java 21, its maximum)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmortagne tmortagne self-assigned this Nov 12, 2026
@tmortagne
tmortagne requested a review from vmassol November 12, 2026 15:19
@tmortagne
tmortagne merged commit e84432f into master Nov 18, 2026
15 checks passed
@tmortagne
tmortagne deleted the XDOCKER-432 branch November 23, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant