@@ -14,6 +14,7 @@ buildscript {
14
14
15
15
plugins {
16
16
id " org.sonarqube" version ' 2.7.1'
17
+ id " io.spring.dependency-management" version " 1.0.8.RELEASE" apply false
17
18
}
18
19
19
20
description = ' Spring AMQP'
@@ -47,6 +48,25 @@ allprojects {
47
48
}
48
49
49
50
ext {
51
+ assertjVersion = ' 3.12.2'
52
+ assertkVersion = ' 0.17'
53
+ commonsHttpClientVersion = ' 4.5.9'
54
+ googleJsr305Version = ' 3.0.2'
55
+ hamcrestVersion = ' 1.3'
56
+ jackson2Version = ' 2.9.9.20190807'
57
+ junit4Version = ' 4.12'
58
+ junitJupiterVersion = ' 5.4.0'
59
+ junitPlatformVersion = ' 1.4.0'
60
+ log4jVersion = ' 2.11.2'
61
+ logbackVersion = ' 1.2.3'
62
+ mockitoVersion = ' 2.26.0'
63
+ rabbitmqVersion = project. hasProperty(' rabbitmqVersion' ) ? project. rabbitmqVersion : ' 5.4.3'
64
+ rabbitmqHttpClientVersion = ' 2.1.0.RELEASE'
65
+ reactorVersion = ' 3.2.11.RELEASE'
66
+
67
+ springVersion = project. hasProperty(' springVersion' ) ? project. springVersion : ' 5.1.9.RELEASE'
68
+
69
+ springRetryVersion = ' 1.2.4.RELEASE'
50
70
expandPlaceholders = ' **/quick-tour.xml'
51
71
javadocLinks = [
52
72
" https://docs.oracle.com/javase/8/docs/api/" ,
@@ -64,32 +84,24 @@ subprojects { subproject ->
64
84
apply plugin : ' project-report'
65
85
apply plugin : ' jacoco'
66
86
apply plugin : ' checkstyle'
87
+ apply plugin : " io.spring.dependency-management"
88
+
89
+ dependencyManagement {
90
+ resolutionStrategy {
91
+ cacheChangingModulesFor 0 , ' seconds'
92
+ }
93
+ applyMavenExclusions = false
94
+ generatedPomCustomization {
95
+ enabled = false
96
+ }
97
+ imports {
98
+ mavenBom " com.fasterxml.jackson:jackson-bom:$jackson2Version "
99
+ }
100
+ }
67
101
68
102
sourceCompatibility= 1.8
69
103
targetCompatibility= 1.8
70
104
71
- ext {
72
- assertjVersion = ' 3.12.2'
73
- assertkVersion = ' 0.17'
74
- commonsHttpClientVersion = ' 4.5.9'
75
- googleJsr305Version = ' 3.0.2'
76
- hamcrestVersion = ' 1.3'
77
- jackson2Version = ' 2.9.9'
78
- junit4Version = ' 4.12'
79
- junitJupiterVersion = ' 5.4.0'
80
- junitPlatformVersion = ' 1.4.0'
81
- log4jVersion = ' 2.11.2'
82
- logbackVersion = ' 1.2.3'
83
- mockitoVersion = ' 2.26.0'
84
- rabbitmqVersion = project. hasProperty(' rabbitmqVersion' ) ? project. rabbitmqVersion : ' 5.4.3'
85
- rabbitmqHttpClientVersion = ' 2.1.0.RELEASE'
86
- reactorVersion = ' 3.2.11.RELEASE'
87
-
88
- springVersion = project. hasProperty(' springVersion' ) ? project. springVersion : ' 5.1.9.RELEASE'
89
-
90
- springRetryVersion = ' 1.2.4.RELEASE'
91
- }
92
-
93
105
eclipse {
94
106
project {
95
107
natures + = ' org.springframework.ide.eclipse.core.springnature'
@@ -237,9 +249,9 @@ project('spring-amqp') {
237
249
compile (" org.springframework:spring-context:$springVersion " , optional)
238
250
compile " org.springframework.retry:spring-retry:$springRetryVersion "
239
251
240
- compile (" com.fasterxml.jackson.core:jackson-core: $j ackson2Version " , optional)
241
- compile (" com.fasterxml.jackson.core:jackson-databind: $j ackson2Version " , optional)
242
- compile (" com.fasterxml.jackson.dataformat:jackson-dataformat-xml: $j ackson2Version " , optional)
252
+ compile (" com.fasterxml.jackson.core:jackson-core" , optional)
253
+ compile (" com.fasterxml.jackson.core:jackson-databind" , optional)
254
+ compile (" com.fasterxml.jackson.dataformat:jackson-dataformat-xml" , optional)
243
255
244
256
testCompile " org.assertj:assertj-core:$assertjVersion "
245
257
testRuntime " org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion "
@@ -278,7 +290,7 @@ project('spring-rabbit') {
278
290
279
291
testRuntime " org.springframework:spring-web:$springVersion "
280
292
testRuntime " org.apache.httpcomponents:httpclient:$commonsHttpClientVersion "
281
- testRuntime " com.fasterxml.jackson.module:jackson-module-kotlin: $j ackson2Version "
293
+ testRuntime " com.fasterxml.jackson.module:jackson-module-kotlin"
282
294
}
283
295
284
296
compileTestKotlin {
0 commit comments