Skip to content
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

remove spring-web #736

Closed
matejsp opened this issue Apr 3, 2018 · 5 comments
Closed

remove spring-web #736

matejsp opened this issue Apr 3, 2018 · 5 comments
Assignees

Comments

@matejsp
Copy link

matejsp commented Apr 3, 2018

Remove"org.springframework:spring-web" as a dependency.
Why is there even a need for spring-web being used as depedency?
I have excluded it and only one test fails. Perhaps it should have test scope?

@artembilan
Copy link
Member

The spring-web is a foundation for the com.rabbitmq:http-client, which is used from the RabbitManagementTemplate.

Not sure what is the problem though. If you don't need it, just exclude.

@artembilan
Copy link
Member

@garyrussell ,

I think we need to reconsider these dependencies to be really optional.
The RabbitMQ Hop now provides a ReactiveClient based on the Spring WebFlux: https://github.com/rabbitmq/hop/blob/master/src/main/java/com/rabbitmq/http/client/ReactiveClient.java

Therefore we have to consider to implement a ReactiveRabbitManagementTemplate as well and let end-user to select a desired Web dependency for their purposes.

More over I think this causes an issue with Spring Boot 2.0, where its Web faceset is based on the classpath. So, our explicit spring-web may be as a big culprit there do not let to deal with WebFlux in Spring Boot app.

WDYT?

@garyrussell
Copy link
Contributor

Agreed.

@artembilan
Copy link
Member

According the latest changes in the RabbitMQ Hop the Spring Web is optional already: rabbitmq/hop#124.

We need to go ahead and remove (move to test scope) such a dependency from Spring Rabbit.

@artembilan
Copy link
Member

The Reactive story is here: https://jira.spring.io/browse/AMQP-812.

@artembilan artembilan self-assigned this Jul 16, 2018
artembilan added a commit to artembilan/spring-amqp that referenced this issue Jul 16, 2018
Fixes spring-projects#736

The latest `hop` makes most of its dependencies as `optional` to meet
a reactive/non-reactive environment requirements
garyrussell pushed a commit that referenced this issue Jul 18, 2018
Fixes #736

The latest `hop` makes most of its dependencies as `optional` to meet
a reactive/non-reactive environment requirements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants