diff --git a/docs/manual/src/asciidoc/index.adoc b/docs/manual/src/asciidoc/index.adoc index 793904c3af..997ecfbdd9 100644 --- a/docs/manual/src/asciidoc/index.adoc +++ b/docs/manual/src/asciidoc/index.adoc @@ -282,13 +282,13 @@ By default Gradle will use the newest version when resolving transitive versions [source,groovy] [subs="verbatim,attributes"] ---- - configurations.spring4TestRuntime { - resolutionStrategy.eachDependency { DependencyResolveDetails details -> - if (details.requested.group == 'org.springframework') { - details.useVersion {spring4-version} - } +configurations.all { + resolutionStrategy.eachDependency { DependencyResolveDetails details -> + if (details.requested.group == 'org.springframework') { + details.useVersion {spring4-version} } } +} ---- This will ensure that all the transitive dependencies of Spring Security use the Spring {spring4-version} modules.