spring-projects / spring-restdocs

Test-driven documentation for RESTful services

Home Page:https://spring.io/projects/spring-restdocs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest dependencies issue is coming while generating rest docs

navyaputtu opened this issue · comments

Hi Sir,

In older version like below 3.0.0 version it was working fine.

After adding latest dependencies, we are not getting any compile time error, but while run time we are getting error related Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@6fc3e1a4] to prepare test instance [com.csmart.middleware.crmservices.api.auth.CustomerControllerTests1@f1f7db2]
java.lang.NoClassDefFoundError: Could not initialize class groovy.lang.GroovySystem
and Caused by: java.lang.ClassNotFoundException: org.springframework.http.HttpStatusCode

Can you pls help me to resolve this.
What all more dependency or package is required for to generate spring rest docs in latest version?

Do you have any git reference project on latest dependencies?

Capture Capture1

After adding latest dependencies. Test cases got failed while doing maven build or running junit test cases. In case of older dependencies it's working fine.

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it).