Skip to content

Commit b309ddc

Browse files
committed
Use a resolution strategy for SF artifacts
1 parent d7acc31 commit b309ddc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,16 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
229229
archives sourcesJar
230230
archives javadocJar
231231
}
232+
233+
configurations.all {
234+
resolutionStrategy {
235+
eachDependency { DependencyResolveDetails details ->
236+
if (details.requested.group == 'org.springframework') {
237+
details.useVersion springVersion
238+
}
239+
}
240+
}
241+
}
232242
}
233243

234244
subprojects {
@@ -311,8 +321,6 @@ project('spring-batch-infrastructure') {
311321

312322
dependencies {
313323

314-
compile enforcedPlatform("org.springframework:spring-framework-bom:$springVersion")
315-
316324
compile "org.springframework:spring-core:$springVersion"
317325
compile "org.springframework.retry:spring-retry:$springRetryVersion"
318326

0 commit comments

Comments
 (0)