Skip to main content

Java Upgrade How To Guide

This page will contain helpful guidance on updating Java.

Add new image to the agents

You will need to add the new java image to the jenkins-packer repo first so it can be used by the jenkins agents.

Example of Java 21 being added

Upgrade application

On the application repos you will need to update the files using java to the latest version we are currently supporting. The main three you should look at:

  • acb.tpl.yaml
  • build.gradle
  • Dockerfile

You also might need to add some dependencies and fix deprecations/vulnerabilities but this will vary based on the application.

Before applying the upgrade it’s best to test it on a lower environment first.

Example of Pdf-service being upgraded to v21

NOTE: If you are upgrading the Java version in a template, we found the best way to do this is by creating a test app from the template and upgrading it. Once you are happy it is upgraded and working, you can then make the same changes to the template.

Warning when upgrading java on camunda

It is best to check camunda docs before attempting to upgrade java as the java version might not be compatible with the correct version of camunda. If this is the case you will need to upgrade camunda.

List of apps we currently support that will need to be upgraded.

This page was last reviewed on 13 May 2024. It needs to be reviewed again on 13 May 2025 by the page owner platops-build-notices .
This page was set to be reviewed before 13 May 2025 by the page owner platops-build-notices. This might mean the content is out of date.