-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Restore deprecated code with no replacement that Spring Cloud Hoxton needs #19860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just going by deprecation comments:
Of course this doesn't mean that all the methods and features of the classes that were removed have replacements that work for Spring Cloud. If you can provide some details on how the removed classes are used, or which Spring Cloud projects use them, we can dig deeper and make sure you have what you need. |
Sure. My term replacements wasn't probably the most descriptive. |
@spencergibb I'll look into restoring |
|
Having it missing breaks our build with 2.3 |
@spencergibb |
The health stuff is deprecated in spring cloud and can't be removed until ilford. Without them our build will break. |
Just so I understand, the classes that were removed from Boot are in a public API in Spring Cloud, not just used internally? |
yes |
Can you point us to the Spring Cloud projects that need |
Spring Cloud Commons and Spring Cloud Netflix off the top of my head. |
@spencergibb The I had to add a direct dependency on
That should be a backward-compatible change in dependencies. If you can confirm with a full build of Spring Cloud with Boot 2.3.0 snapshots, I think we can close this issue. |
@spencergibb I'm going to close this issue based on my testing, feel free to re-open if your builds uncover a problem. |
@scottfrederick Are there plans to re-drop the deprecated the code in later versions of Spring Boot 2.3, or is that going to be held off until v2.4? (I maintain a library that makes usage of the deprecated code. I want to be able to support all supported versions of Spring Boot which currently span between 2.1-2.3 at the moment.) |
It won't happen in 2.3 |
The current (informal and so-far-undocumented) policy is to remove deprecations no sooner than two minor versions after being marked deprecated. So something marked as As a rule, deprecations are not removed in patch versions (e.g. |
I'm upgrading our spring boot application from Spring boot 2.1.7 Release version to 2.7.9.
As these replacement implementation and their methods are different. Should I need to write new implementation or is their any alternative for this. @scottfrederick, @spencergibb |
@rshar31 You'll need to adapt to the new interfaces. If you have any further questions please ask on stackoverflow.com or gitter.im. We prefer to keep the issue tracker for bugs and enhancements. |
Spring Cloud Hoxton is trying to support both 2.2 and 2.3 simultaneously.
#19699 removed some deprecations which will cause problems.
So far the items I've found that do not have replacements are:
org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
.org.springframework.boot.actuate.health.CompositeHealthIndicator
org.springframework.boot.actuate.health.HealthAggregator
It was a smaller list than I initially feared. I'll double-check that those are all of them.
The text was updated successfully, but these errors were encountered: