apache / apache/dubbo

[Dependency] Exclude transitive spring dependencies from dubbo-all or dubbo-spring-boot-starter

Open
#14,032 6 comments 0 reactions 1 assignee Assigned to @heliang666s View on GitHub
component/need-triage type/need-triage
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

### Pre-check

- [X] I am sure that all the content I provide is in English.

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.

### Apache Dubbo Component

Java SDK (apache/dubbo)

### Dubbo Version

3.3.0-beta.2

### Steps to reproduce this issue

Remove the following transitive dependencies from `dubbo-all`, if not possible, at least exclude them in `dubbo-spring-boot-starter`.
```xml


org.springframework
spring-core


org.springframework
spring-beans


org.springframework
spring-context

```

Try to completely get rid of the following dependency:
```xml

com.alibaba.spring
spring-context-support

```

### What you expected to happen

* When using spring, the recommended way is spring boot, so transitive spring dependencies is not necessary, let `spring-boot-starter` do this for users.
* When using API, we don't need spring dependencies.

### Anything else

_No response_

### Are you willing to submit a pull request to fix on your own?

- [ ] Yes I am willing to submit a pull request on my own!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.