This message was deleted.
# community-support
s
This message was deleted.
m
Probably because you are using the Spring DM plugin
You should remove it and use Gradle's built-in support for platforms (BOMs)
v
Which is even recommended by the maintainer of the Spring Dependency Management Plugin.
j
Nice! Let me try that! Thanks
Is there a standard way to add assertions to the actual class path of a project in Gradle?
v
What do you mean?
m
I guess something like this:
Copy code
configurations.runtimeClasspath.incoming.afterResolve {
   // whatever you want to check
}
👍 1
j
Tested: Gradle's native BOM support solves the problem. More observations: SpringBoot documentation does not clearly recommends to avoid using their plugin. "io.spring.dependency-management" plugin is generated in a fresh project via SpringInitializr.
Thanks Cédric, I will use that approach. The reasoning behind - we have multiple modules with hundreds of transitive dependencies plus dependency resolution. I'm looking to make the whole process more predictable to catch sudden changes to the classpath. A butterfly effect
v
You are right with your observations. I didn't say the docs or tools recommend it. I said the maintainer of that plugin recommends it: https://linen.dev/s/gradle-community/t/2579116/what-is-the-proper-way-to-apply-a-bom-in-a-library-project-i#a7d4a60a-ab60-48dc-8477-f3f4462d1e6a :-) Well, their docs at least say that you get faster builds with the built-in BOM support: https://docs.spring.io/spring-boot/docs/3.0.4/gradle-plugin/reference/htmlsingle/#managing-dependencies
👍 1