There is a missing 4.0.0 release for spring-boot-starter-undertow (only appears to be a 4.0.0-M1 version), resulting in a missing dependency error on build when attempting a simple version upgrade to 4.0.0:
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.springframework.boot:spring-boot-starter-undertow:.
Undertow is used via this Gradle dependency snippet:
implementation('org.springframework.boot:spring-boot-starter-web') {
exclude group:'org.springframework.boot', module:'spring-boot-starter-tomcat'
}
implementation 'org.springframework.boot:spring-boot-starter-undertow'