mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
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:
+1
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
+6
@@ -49,3 +49,9 @@ bootWar {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('bootBuildImage') {
|
||||
environment = [
|
||||
'BP_SPRING_CLOUD_BINDINGS_DISABLED': 'true'
|
||||
]
|
||||
}
|
||||
|
||||
+2
-1
@@ -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'
|
||||
]
|
||||
}
|
||||
|
||||
+7
-1
@@ -46,4 +46,10 @@ bootJar {
|
||||
'Implementation-Title': "Paketo Test"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('bootBuildImage') {
|
||||
environment = [
|
||||
'BP_SPRING_CLOUD_BINDINGS_DISABLED': 'true'
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user