@@ -15,6 +15,7 @@ plugins {
15
15
id ' org.asciidoctor.convert' version ' 1.6.1'
16
16
id ' org.ajoberstar.grgit' version ' 3.1.1'
17
17
id " io.spring.nohttp" version " 0.0.3.RELEASE"
18
+ id " io.spring.dependency-management" version " 1.0.8.RELEASE" apply false
18
19
}
19
20
20
21
description = ' Spring AMQP'
35
36
36
37
modifiedFiles =
37
38
files(grgit. status(). unstaged. modified). filter{ f -> f. name. endsWith(' .java' ) || f. name. endsWith(' .kt' ) }
39
+
40
+ assertjVersion = ' 3.12.2'
41
+ assertkVersion = ' 0.19'
42
+ commonsHttpClientVersion = ' 4.5.9'
43
+ googleJsr305Version = ' 3.0.2'
44
+ hamcrestVersion = ' 1.3'
45
+ jackson2Version = ' 2.9.9.20190807'
46
+ jaywayJsonPathVersion = ' 2.4.0'
47
+ junit4Version = ' 4.12'
48
+ junitJupiterVersion = ' 5.5.1'
49
+ junitPlatformVersion = ' 1.5.1'
50
+ log4jVersion = ' 2.12.0'
51
+ logbackVersion = ' 1.2.3'
52
+ mockitoVersion = ' 3.0.0'
53
+ rabbitmqVersion = project. hasProperty(' rabbitmqVersion' ) ? project. rabbitmqVersion : ' 5.7.3'
54
+ rabbitmqHttpClientVersion = ' 3.2.0.RELEASE'
55
+ reactorVersion = ' 3.3.0.BUILD-SNAPSHOT'
56
+ springDataCommonsVersion = ' 2.2.0.BUILD-SNAPSHOT'
57
+ springVersion = project. hasProperty(' springVersion' ) ? project. springVersion : ' 5.2.0.BUILD-SNAPSHOT'
58
+ springRetryVersion = ' 1.2.4.RELEASE'
38
59
}
39
60
40
61
nohttp {
@@ -45,6 +66,18 @@ nohttp {
45
66
allprojects {
46
67
group = ' org.springframework.amqp'
47
68
69
+ apply plugin : " io.spring.dependency-management"
70
+
71
+ dependencyManagement {
72
+ resolutionStrategy {
73
+ cacheChangingModulesFor 0 , ' seconds'
74
+ }
75
+ applyMavenExclusions = false
76
+ generatedPomCustomization {
77
+ enabled = false
78
+ }
79
+ }
80
+
48
81
repositories {
49
82
maven { url ' https://repo.spring.io/libs-release' }
50
83
if (version. endsWith(' BUILD-SNAPSHOT' )) {
@@ -78,28 +111,6 @@ subprojects { subproject ->
78
111
sourceCompatibility= 1.8
79
112
targetCompatibility= 1.8
80
113
81
- ext {
82
- assertjVersion = ' 3.12.2'
83
- assertkVersion = ' 0.19'
84
- commonsHttpClientVersion = ' 4.5.9'
85
- googleJsr305Version = ' 3.0.2'
86
- hamcrestVersion = ' 1.3'
87
- jackson2Version = ' 2.9.9'
88
- jaywayJsonPathVersion = ' 2.4.0'
89
- junit4Version = ' 4.12'
90
- junitJupiterVersion = ' 5.5.1'
91
- junitPlatformVersion = ' 1.5.1'
92
- log4jVersion = ' 2.12.0'
93
- logbackVersion = ' 1.2.3'
94
- mockitoVersion = ' 3.0.0'
95
- rabbitmqVersion = project. hasProperty(' rabbitmqVersion' ) ? project. rabbitmqVersion : ' 5.7.3'
96
- rabbitmqHttpClientVersion = ' 3.2.0.RELEASE'
97
- reactorVersion = ' 3.3.0.BUILD-SNAPSHOT'
98
- springDataCommonsVersion = ' 2.2.0.BUILD-SNAPSHOT'
99
- springVersion = project. hasProperty(' springVersion' ) ? project. springVersion : ' 5.2.0.BUILD-SNAPSHOT'
100
- springRetryVersion = ' 1.2.4.RELEASE'
101
- }
102
-
103
114
eclipse {
104
115
project {
105
116
natures + = ' org.springframework.ide.eclipse.core.springnature'
@@ -278,6 +289,12 @@ subprojects { subproject ->
278
289
279
290
project(' spring-amqp' ) {
280
291
description = ' Spring AMQP Core'
292
+ dependencyManagement {
293
+ imports {
294
+ mavenBom " com.fasterxml.jackson:jackson-bom:$jackson2Version "
295
+ }
296
+ }
297
+
281
298
dependencies {
282
299
283
300
compile " org.springframework:spring-core:$springVersion "
@@ -288,9 +305,9 @@ project('spring-amqp') {
288
305
exclude group : ' org.springframework'
289
306
}
290
307
291
- compile (" com.fasterxml.jackson.core:jackson-core: $j ackson2Version " , optional)
292
- compile (" com.fasterxml.jackson.core:jackson-databind: $j ackson2Version " , optional)
293
- compile (" com.fasterxml.jackson.dataformat:jackson-dataformat-xml: $j ackson2Version " , optional)
308
+ compile (" com.fasterxml.jackson.core:jackson-core" , optional)
309
+ compile (" com.fasterxml.jackson.core:jackson-databind" , optional)
310
+ compile (" com.fasterxml.jackson.dataformat:jackson-dataformat-xml" , optional)
294
311
295
312
// Spring Data projection message binding support
296
313
compile (" org.springframework.data:spring-data-commons:$springDataCommonsVersion " ) {
@@ -307,6 +324,12 @@ project('spring-amqp') {
307
324
project(' spring-rabbit' ) {
308
325
description = ' Spring RabbitMQ Support'
309
326
327
+ dependencyManagement {
328
+ imports {
329
+ mavenBom " com.fasterxml.jackson:jackson-bom:$jackson2Version "
330
+ }
331
+ }
332
+
310
333
dependencies {
311
334
312
335
compile project(" :spring-amqp" )
@@ -328,7 +351,7 @@ project('spring-rabbit') {
328
351
testCompile(" com.willowtreeapps.assertk:assertk-jvm:$assertkVersion " )
329
352
testRuntime " org.springframework:spring-web:$springVersion "
330
353
testRuntime " org.apache.httpcomponents:httpclient:$commonsHttpClientVersion "
331
- testRuntime " com.fasterxml.jackson.module:jackson-module-kotlin: $j ackson2Version "
354
+ testRuntime " com.fasterxml.jackson.module:jackson-module-kotlin"
332
355
}
333
356
334
357
compileTestKotlin {
@@ -364,6 +387,12 @@ project('spring-rabbit-junit') {
364
387
project(' spring-rabbit-test' ) {
365
388
description = ' Spring Rabbit Test Support'
366
389
390
+ dependencyManagement {
391
+ imports {
392
+ mavenBom " com.fasterxml.jackson:jackson-bom:$jackson2Version "
393
+ }
394
+ }
395
+
367
396
dependencies {
368
397
369
398
compile project(" :spring-rabbit" )
0 commit comments