当我尝试用spring cloud stream构建gradle spring启动项目时,我收到以下错误:
Execution failed for task ':compileTestJava'.
> Could not resolve all files for configuration ':testCompileClasspath'.
> Could not find org.springframework.cloud:spring-cloud-stream:test-binder.
Required by:
project :
> Could not find org.springframework.cloud:spring-cloud-stream:test-binder.
Required by:
project :
> Could not find org.springframework.cloud:spring-cloud-stream:test-binder.
Required by:
project : > org.springframework.cloud:spring-cloud-stream-binder-kafka-streams:3.0.9.RELEASE > org.springframework.cloud:spring-cloud-stream-binder-kafka-core:3.0.9.RELEASE
如果删除以下依赖项,则项目可以正常工作: testImplementation 'org.springframework.cloud:spring-cloud-stream:test-binder@test-jar'
该项目是使用springinitilizr和此配置生成的。
我可以改变什么使项目成功构建?
1条答案
按热度按时间ntjbwcob1#
改变
到
目前,spring initializer生成带有此错误的gradle项目,问题记录在#1159和#591中。