Upgrade spring boot from 3.1.5 to 3.2.0

gradle configuration

buildscript {
    ext {
        SpringBootVersion = '3.2.0'
    }
}


plugins {
    id 'java'
    id 'org.springframework.boot' version "${SpringBootVersion}"
    id 'io.spring.dependency-management' version "1.1.4"
}

bootJar {
    manifest {
        attributes 'Main-Class': 'org.springframework.boot.loader.PropertiesLauncher'
        attributes 'Start-Class': 'com.java.test.Application'
        attributes 'Loader-Path': 'jar'
    }
}

gradle build jar successfully.

java -jar test.jar failed as below message

Error: Could not find or load main class org.springframework.boot.loader.PropertiesLauncher
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.loader.PropertiesLauncher

downgrade back to 3.1.5, java -jar test.jar works well.

Comment From: bclozel

Classes were relocated in #37667

This is being called out in the upgrade notes. Thanks!

Comment From: rubensa

@bclozel The Spring Boot Docker Getting Started Guide still references the old org.springframework.boot.loader.JarLauncher class.

Comment From: bclozel

@rubensa https://github.com/spring-guides/top-spring-boot-docker/issues