-
Notifications
You must be signed in to change notification settings - Fork 90
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
Document how to declare a dependency using a provider to avoid problems with importedProperties and managedVersions causing premature bom resolution that interferes with subsequent dependency management and dependency configuration #193
Comments
The problem is that calling There's a broader problem here, though. Using |
The same broader problem also applies to |
To add another related use case, I would like to specify a version, but only if the version I am specifying is newer than the one that would otherwise be used. We would like to use the newer version because it includes a security fix, but whenever Spring Boot starts including a version that is newer than the one specified we would just want to use that. I attempted to use the |
Gradle 6.5 has added support for declaring dependencies using a
I'll turn this into a documentation issue for 1.0.x. |
Here is the relevant snippet from my build.gradle file that reproduces this issue:
The problem occurs when I call the
dependencyManagement
API from within adependency {}
declaration.If this API call is removed, the
mavenBom
is imported as expected.Here is an example repo. To test whether the BOM is imported or not, use this command:
Spring Boot alone only contains about 5 Spring Cloud dependencies, so that's all you should see in the list.
When you remove the API call mentioned above, you'll see dozens of Spring Cloud dependencies coming from the Spring Cloud BOM.
NOTE: Ordering seems to be a factor as if you move the
dependencyManagement {}
section above thedependencies {}
section, it works as expected, even when calling the dependencyManagement API within a dependency declaration.The text was updated successfully, but these errors were encountered: