-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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 Plugin "Getting Started" documentation section out of date #40954
Comments
There are pros and cons to the two approaches. As the dependency management plugin is a dependency of Spring Boot's plugin, using apply allows the plugin to be applied without specifying its version. The alternative is discussed elsewhere in the documentation.
I'm not aware of any differences in terms of the API that's available when using one of the two methods of applying the plugin. Can you please provide a minimal example that reproduces the behavior you've described? |
You can use this project and simply add |
Thanks. That's a limitation of the Kotlin DSL that's briefly mentioned in Gradle's documentation. As shown in the documentation for Boot's Gradle plugin that I linked to above, you need to use the
Given this, and the pros and cons discussed above, I don't think we should make a change here. This may change in the future depending on spring-io/initializr#1428. |
Here it is suggested to apply the io.spring.dependency-management plugin using a legacy method to apply the plugin (source -> here).
Apply the plugin in this way, doesn't give access to the API the plugin offers to access for instance, the
managedVersions
as explained here.The text was updated successfully, but these errors were encountered: