Open dhamep opened 2 years ago
Hi @dhamep, 1.1.2 to 3.0.6 - that's an upgrade 🙂
So I do not think that springBoot = false
is the root cause here, because the majority of our integration tests are not Spring Boot apps and have that toggle set to false. Also, that springBoot
toggle takes effect on the classpath of the webapp, not on the classpath Gradle uses for executing the plugin. We are talking about the latter here - Gradle fails to instantiate one of the tasks of Gretty. That makes me wonder if any other dependency exclusions exist in your project.
So I can confirm that Gretty-the-plugin has a dependency on Spring Boot to provide that dev server functionality and cannot run without that dependency. Maybe that dev server feature came in after 1.1.2, which would explain why this failure you are observing is new.
So I would suggest you check the output of ./gradlew buildEnvironment
to really make sure that the Spring Boot dependency is there. Below I included an example output from https://github.com/gretty-gradle-plugin/gretty-sample:
When Gradle executes the build script and processes the Gretty plugin application with that Spring Boot dependency on the classpath, the error should disappear.
I have upgraded the gretty version 1.1.2 to 3.0.6. since then its failing at
Indeed we do have this following setting:
Because of which earlier version 1.1.2 version didn't complains for spring boot dependency. Can you please confirm why this is complaining now? Or any specific version i can use to get rid of this error?