Disable Spring Cloud bindings

Spring Cloud Bindings still rely on the EnvironmentPostProcessor
interface that was deprecated in Spring Boot 4.0. This commit disables
this feature and adapts to new deprecation warnings.

See gh-50955
This commit is contained in:
Stéphane Nicoll
2026-07-20 13:27:29 +02:00
parent 58e63c00e9
commit f558e1d8e5
4 changed files with 16 additions and 2 deletions
@@ -75,6 +75,7 @@ class PaketoBuilderTests {
this.gradleBuild.expectDeprecationMessages("BPL_SPRING_CLOUD_BINDINGS_ENABLED.*true.*Deprecated");
this.gradleBuild.expectDeprecationMessages("Command \"packages\" is deprecated, use `syft scan` instead");
this.gradleBuild.expectDeprecationMessages("BP_ENABLE_RUNTIME_CERT_BINDING.*true.*Deprecated");
this.gradleBuild.expectDeprecationMessages("Warning: BOM table is deprecated in this buildpack api version");
this.gradleBuild.gradleVersion(GradleVersions.maximumCompatible());
}
@@ -49,3 +49,9 @@ bootWar {
)
}
}
tasks.named('bootBuildImage') {
environment = [
'BP_SPRING_CLOUD_BINDINGS_DISABLED': 'true'
]
}
@@ -51,6 +51,7 @@ bootBuildImage {
environment = [
'BP_JVM_VERSION': java.targetCompatibility.getMajorVersion(),
'BP_TOMCAT_VERSION': '11.*',
'BP_DEPENDENCY_MIRROR_DOWNLOADS_APACHE_ORG': 'https://archive.apache.org/dist'
'BP_DEPENDENCY_MIRROR_DOWNLOADS_APACHE_ORG': 'https://archive.apache.org/dist',
'BP_SPRING_CLOUD_BINDINGS_DISABLED': 'true'
]
}
@@ -46,4 +46,10 @@ bootJar {
'Implementation-Title': "Paketo Test"
)
}
}
}
tasks.named('bootBuildImage') {
environment = [
'BP_SPRING_CLOUD_BINDINGS_DISABLED': 'true'
]
}