"OSS support for Spring Boot 3.5.x ended on 2026-06-30" message doesn't go away after upgrading to 4.1.0
18:51 16 Jul 2026

I migrated from Spring Boot 3.5.x to 4.1.0 with Java 21 and Gradle 9.3.1 in VS Code. Everything seems to work fine, but vs code still gives me the annoying message:

OSS support for Spring Boot 3.5.x ended on 2026-06-30, get commercial support until 2032-06-30 via Tanzu Spring Runtime at https://spring.io/support(BOOT_VERSION_VALIDATION_CODE)

I specified gradle 9.3.1 in the gradle.properties

I the build.gradle file, the first character in plugins has the squiggly underline indicating a problem. Click on that gives you the message above.

The build.gradle file:

plugins {
    id 'java-library'
    id 'maven-publish'
    id "org.springframework.boot" version "4.1.0"
    id 'io.spring.dependency-management' version '1.1.7'
}

group   = 'my.group'
version = '1.0.1-SNAPSHOT'

java {
    toolchain { languageVersion = JavaLanguageVersion.of(21) }
    withSourcesJar()
    withJavadocJar()
}
repositories { mavenCentral() }

dependencyManagement {
  imports {
    mavenBom 'org.springframework.boot:spring-boot-dependencies:4.1.0'
    mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2025.1.2'
    }
}
dependencies {
  compileOnly 'org.projectlombok:lombok'
  annotationProcessor 'org.projectlombok:lombok'
  api 'org.springframework.boot:spring-boot-starter'
  api 'org.springframework.boot:spring-boot-starter-validation'
  implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'com.fasterxml.jackson.core:jackson-databind'
    implementation 'com.fasterxml.jackson.core:jackson-core'
    implementation 'com.fasterxml.uuid:java-uuid-generator:5.1.0'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    
    // Explicitly align JUnit Platform versions to fix test discovery
    testImplementation 'org.junit.platform:junit-platform-launcher'
    testImplementation 'org.junit.platform:junit-platform-engine'
}
publishing {
    publications {
        mavenJava(MavenPublication) {
            from components.java
            groupId    = project.group
            artifactId = project.name
            version    = project.version
        }
    }
    repositories {
        mavenLocal()
    }
}

test {
    useJUnitPlatform()
}

bootJar {
    enabled = false
}
java spring spring-boot gradle