Skip to content

[Question]: Why was spring-boot-starter-aop removed from dependencies? #1035

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

Closed
maxl2287 opened this issue May 31, 2024 · 8 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@maxl2287
Copy link

Hi together,

just a short question.
We are using resilience4j, which needs:

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-aop</artifactId>
</dependency>

With upgrading spring-cloud-dependencies to the latest version 2023.0.2, we faced issues that our Retry-mechanism was not working anymore.
Then we analyzed the dependencies and saw that you have removed the aop-dependency from spring-cloud-openfeign-core (6084609).

As a change we just have included aop by ourself, but we just wanted to know what was the intention of removing this.

Thanks in advance! :)

@maxl2287 maxl2287 changed the title [Question]: Why was aop removed from dependencies? [Question]: Why was spring-boot-starter-aop removed from dependencies? May 31, 2024
@jjlharrison
Copy link

Just to confirm that this issue affecting multiple dependent projects. We have added the dependency directly to resolve the issue.

It would be good to know why the dependency was removed and why it was there in the first place. Unfortunately, the Resilience4J annotations are just silently ignored without it (unless you have tests verifying their behaviour, which we fortunately had).

Thanks 🙂

@maxl2287
Copy link
Author

maxl2287 commented Jun 3, 2024

Just to confirm that this issue affecting multiple dependent projects. We have added the dependency directly to resolve the issue.

It would be good to know why the dependency was removed and why it was there in the first place. Unfortunately, the Resilience4J annotations are just silently ignored without it (unless you have tests verifying their behaviour, which we fortunately had).

Thanks 🙂

@jjlharrison Exactly we had the same issue. This issue only came up by having verification tests, which did not trigger retries at all after upgrading spring-cloud-dependencies :)

@mgimenoromanadevinta
Copy link

Hello
Are there any news on this topic?
Thanks

@OlgaMaciaszek
Copy link
Collaborator

Hi all, we have discover that spring-boot-starter-aop was a legacy dependency in Spring Cloud OpenFeign. The project hasn't used it for a long time and hence it should not be there anymore. Additionally, it was causing an AOT issue (spring-projects/spring-data-mongodb#4637 (comment)) that was in no way related to SC OpenFeign. If the dependency is required by other projects, the users should add it directly if not provided.

@OlgaMaciaszek OlgaMaciaszek added question Further information is requested and removed waiting-for-triage labels Jun 25, 2024
@OlgaMaciaszek OlgaMaciaszek self-assigned this Jun 25, 2024
@boris-faniuk-n26
Copy link

boris-faniuk-n26 commented Jun 26, 2024

Hello, @OlgaMaciaszek !
Thanks for the explanation, we had a similar issue.
As a suggestion, maybe it worth updating at least minor version in case you modify the structure of dependencies.
We have dependabot grouping patch updates and PR with 10 different updates failed.
It would be easier to find this thread, if we knew that openfeign update was the reason.

@OlgaMaciaszek
Copy link
Collaborator

I agree that it would be preferable, however, we do a major/minor release usually just once a year and given the AOT bug, it would have been problematic to wait that much, so since it was a bugfix, we decided to go ahead with it. We're sorry for any inconvenience this might have caused.

@lazee
Copy link

lazee commented Oct 30, 2024

As other says, this goes for all the starters, that are removed. The documentation should at least be updated, as it is clearly wrong pt. (eg https://spring.io/projects/spring-cloud-sleuth)

@OlgaMaciaszek
Copy link
Collaborator

@lazee Spring Cloud Sleuth is a separate project. If you've found any other problem in Spring Cloud OpenFeign docs, please create a separate GH issue and we'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants