Skip to main content

Java 11 / Tomcat 9 Upgrade Guide

Introduction

You can upgrade a project without performing a full upgrade. There are some limitations based on versions, which is covered in the prerequisites section below.

Prerequisites

  • Gradle version: 4.2.15 or higher
  • Brightspot version: 4.2.22 or higher
  • Project is on Cloud infrastructure

Refer below for operational limitations to upgrade to Java 11.

Cloud

Any cloud project should be able to upgrade their tomcat version to a version compatible with Java 11

Performing the upgrade

Update Java version

Replace the Java version in the root build.gradle.

sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11

In your docker-compose.yml file, replace the Tomcat image field so it matches brightspot/tomcat:9-jdk11.

services:
tomcat:
image: brightspot/tomcat:9-jdk11