When running a Spring Boot application with Gradle, the following error might occur:
The core exception is:
Environment
SpringBoot 2.x
Gradle 6.x
The configurations
Let’s check the project’s build.gradle:
Solution
We should notice that the plugin org.springframework.boot’s version is 2.4.2.RELEASE, but there is no version named 2.4.2.RELEASE. We should use 2.4.2 instead.
This post demonstrated how to resolve the “Plugin not found” error in a Spring Boot application using Gradle. The key solution was to correct the plugin version in the build.gradle file by removing the .RELEASE suffix. Ensuring the correct plugin version and proper repository configuration are crucial for resolving such issues. Always verify the available plugin versions and repository configurations to avoid similar problems.
Final Words + More Resources
My intention with this article was to help others who might be considering solving such a problem.
So I hope that’s been the case here. If you still have any questions, don’t hesitate to ask me by
email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope: