如何解决排除依赖并导入其他版本
我希望能够使用 Gradle 导入 org.springframework.retry:spring-retry:1.3.2-SNAPSHOT
。
但是,spring-retry 依赖项(不同版本):org.springframework.retry:spring-retry:1.2.5.RELEASE
来自 org.springframework.boot:spring-boot-starter-integration -> 2.3.3.RELEASE
。
如何排除来自 spring-boot-starter-integration 的依赖,而是导入 1.3.2-SNAPSHOT 版本?
这是我的 Gradle 的链接:https://github.com/Nikhilgupta1891/RetryRecover/blob/main/build.gradle%20copy#L55
解决方法
显式添加
implementation 'org.springframework.retry:spring-retry:1.3.2-SNAPSHOT
并添加
https://repo.spring.io/snapshot
到存储库。
但是,它尚未发布并带有最近的更改,您需要在本地构建它并mvn clean install
并将 mavenLocal()
添加到存储库。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。