diff --git a/bom/spring-security-bom.gradle b/bom/spring-security-bom.gradle index 68b4eee5e7..69b6d399a2 100644 --- a/bom/spring-security-bom.gradle +++ b/bom/spring-security-bom.gradle @@ -4,7 +4,7 @@ apply plugin: 'io.spring.convention.bom' dependencies { constraints { - project.allprojects { p -> + project.rootProject.allprojects { p -> p.plugins.withType(SpringModulePlugin) { api p }