Skip to content

Spring Cloud Task 3.0 Migration Guide

Glenn Renfro edited this page Jan 19, 2022 · 9 revisions

This document is meant to help you migrate your application to Spring Cloud Task 3.0.

This document is a work in progress.

Major changes

JDK 17 baseline

Spring Cloud Task 3 is based on Spring Framework 6 and Spring Boot 3 which requires Java 17 as a minimum version. Therefore, you need to use Java 17+ to run Spring Cloud Task 3 applications.

Dependencies upgrade

Spring Cloud Task 3 is updating its Spring dependencies across the board to the following versions:

  • Spring Framework 6
  • Spring Boot 3

Moreover, this version marks the migration to Jakarta EE 9. Please make sure to update your import statements from javax.* to jakarta.* for all EE APIs you use.

Database schema updates

MS SQLServer

Up until v2, the DDL script for MS SQLServer used tables to emulate sequences. In this version, this usage has been updated with real sequences:

CREATE SEQUENCE TASK_SEQ START WITH 0 MINVALUE 0 MAXVALUE 9223372036854775807 NO CACHE NO CYCLE;

New applications can use the provided script with no modifications. Existing applications should consider modifying the snippet above to start sequences from the last value in sequence tables used with v4.

Clone this wiki locally