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

Gradle project with spring-cloud-stream does not build #591

Closed
henriquels25 opened this issue Dec 6, 2020 · 2 comments
Closed

Gradle project with spring-cloud-stream does not build #591

henriquels25 opened this issue Dec 6, 2020 · 2 comments
Labels
for: external-project For an external project and not something we can fix

Comments

@henriquels25
Copy link

henriquels25 commented Dec 6, 2020

I created a project with the options shown in the following image:

spring_initializer_cloud_stream

When I extract the project and run ./gradlew clean build it throws the following error:

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

I set up a simple project to demonstrate the problem: https://github.com/henriquels25/cloud-stream-gradle. This sample project is the same one the start.spring.io generated.

The error can be observed in this CI execution.

The cause for the error is the following dependency:

testImplementation 'org.springframework.cloud:spring-cloud-stream:test-binder@test-jar'.

When I remove it, the project builds successfully, as it can be observed in the branch remove_test_dependency and in this CI execution.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 6, 2020
@henriquels25
Copy link
Author

I just found the issue #1159 in the spring-io/initializr repo. It is the same problem I am facing.

@snicoll
Copy link
Contributor

snicoll commented Dec 7, 2020

Thanks @henriquels25, closing this one as a duplicate. I've disabled this post-processor for Gradle in the meantime so that projects using this dependency can build properly.

@snicoll snicoll closed this as completed Dec 7, 2020
@snicoll snicoll added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

3 participants