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

publishStubsToScm fails with NoClassDefFoundError #1734

Closed
p-ssanders opened this issue Nov 16, 2021 · 0 comments
Closed

publishStubsToScm fails with NoClassDefFoundError #1734

p-ssanders opened this issue Nov 16, 2021 · 0 comments
Labels
Milestone

Comments

@p-ssanders
Copy link

Describe the bug
With

  • Spring Cloud Contract 2020.0.4
  • Spring Boot 2.5.6
  • spring-cloud-contract-gradle-plugin 3.0.4
  • Gradle 7.3

publishStubsToScm gradle task fails when targeting a remote git repository with the error:

Caused by: java.lang.IllegalStateException: Exception occurred while cloning repo
	at org.springframework.cloud.contract.stubrunner.GitRepo.cloneProject(GitRepo.java:126)
...
Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/agentproxy/connector/SSHAgentConnector
	at org.springframework.cloud.contract.stubrunner.GitRepo$JGitFactory$1.createDefaultJSch(GitRepo.java:339)

Sample
A project to reproduce this problem can be found at https://github.com/p-ssanders/scc-publishstubstoscm-example
Run ./gradlew clean build publishStubsToScm --stacktrace to reproduce

shanman190 added a commit to shanman190/spring-cloud-contract that referenced this issue Nov 22, 2021
@marcingrzejszczak marcingrzejszczak added this to To do in 2020.0.5 via automation Nov 23, 2021
@marcingrzejszczak marcingrzejszczak added this to To do in 2021.0.0 via automation Nov 23, 2021
@marcingrzejszczak marcingrzejszczak added this to the 3.0.5 milestone Nov 23, 2021
@spencergibb spencergibb moved this from To do to Done in 2021.0.0 Nov 23, 2021
@spencergibb spencergibb moved this from To do to Done in 2020.0.5 Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
2020.0.5
  
Done
2021.0.0
  
Done
Development

No branches or pull requests

3 participants