You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,8 +81,7 @@ When you use Spring Security without Spring Boot, the preferred way is to use Sp
84
81
85
82
.pom.xml
86
83
====
87
-
[source,xml]
88
-
[subs="verbatim,attributes"]
84
+
[source,xml,ubs="verbatim,attributes"]
89
85
----
90
86
<dependencyManagement>
91
87
<dependencies>
@@ -106,8 +102,7 @@ A minimal Spring Security Maven set of dependencies typically looks like the fol
106
102
107
103
.pom.xml
108
104
====
109
-
[source,xml]
110
-
[subs="verbatim,attributes"]
105
+
[source,xml,subs="verbatim,attributes"]
111
106
----
112
107
<dependencies>
113
108
<!-- ... other dependency elements ... -->
@@ -125,22 +120,21 @@ A minimal Spring Security Maven set of dependencies typically looks like the fol
125
120
126
121
If you use additional features (such as LDAP, OpenID, and others), you need to also include the appropriate <<modules>>.
127
122
128
-
Spring Security builds against Spring Framework {spring-version} but should generally work with any newer version of Spring Framework 5.x.
129
-
Many users are likely to run afoul of the fact that Spring Security's transitive dependencies resolve Spring Framework {spring-version}, which can cause strange classpath problems.
123
+
Spring Security builds against Spring Framework {spring-core-version} but should generally work with any newer version of Spring Framework 5.x.
124
+
Many users are likely to run afoul of the fact that Spring Security's transitive dependencies resolve Spring Framework {spring-core-version}, which can cause strange classpath problems.
130
125
The easiest way to resolve this is to use the `spring-framework-bom` within the `<dependencyManagement>` section of your `pom.xml` as the following example shows:
131
126
132
127
.pom.xml
133
128
====
134
-
[source,xml]
135
-
[subs="verbatim,attributes"]
129
+
[source,xml,subs="verbatim,attributes"]
136
130
----
137
131
<dependencyManagement>
138
132
<dependencies>
139
133
<!-- ... other dependency elements ... -->
140
134
<dependency>
141
135
<groupId>org.springframework</groupId>
142
136
<artifactId>spring-framework-bom</artifactId>
143
-
<version>{spring-version}</version>
137
+
<version>{spring-core-version}</version>
144
138
<type>pom</type>
145
139
<scope>import</scope>
146
140
</dependency>
@@ -149,7 +143,7 @@ The easiest way to resolve this is to use the `spring-framework-bom` within the
149
143
----
150
144
====
151
145
152
-
The preceding example ensures that all the transitive dependencies of Spring Security use the Spring {spring-version} modules.
146
+
The preceding example ensures that all the transitive dependencies of Spring Security use the Spring {spring-core-version} modules.
153
147
154
148
NOTE: This approach uses Maven's "`bill of materials`" (BOM) concept and is only available in Maven 2.0.9+.
155
149
For additional details about how dependencies are resolved, see https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html[Maven's Introduction to the Dependency Mechanism documentation].
@@ -238,7 +232,7 @@ You can do so by adding a Gradle property, as the following example shows:
238
232
[source,groovy]
239
233
[subs="verbatim,attributes"]
240
234
----
241
-
ext['spring.version']='{spring-version}'
235
+
ext['spring.version']='{spring-core-version}'
242
236
----
243
237
====
244
238
@@ -282,8 +276,8 @@ dependencies {
282
276
283
277
If you use additional features (such as LDAP, OpenID, and others), you need to also include the appropriate <<modules>>.
284
278
285
-
Spring Security builds against Spring Framework {spring-version} but should generally work with any newer version of Spring Framework 5.x. {JB}
286
-
Many users are likely to run afoul of the fact that Spring Security's transitive dependencies resolve Spring Framework {spring-version}, which can cause strange classpath problems.
279
+
Spring Security builds against Spring Framework {spring-core-version} but should generally work with any newer version of Spring Framework 5.x. {JB}
280
+
Many users are likely to run afoul of the fact that Spring Security's transitive dependencies resolve Spring Framework {spring-core-version}, which can cause strange classpath problems.
287
281
The easiest way to resolve this is to use the `spring-framework-bom` within your `<dependencyManagement>` section of your `pom.xml`.
288
282
You can do so by using the https://github.com/spring-gradle-plugins/dependency-management-plugin[Dependency Management Plugin], as the following example shows:
0 commit comments