@@ -3,23 +3,21 @@ buildscript {
3
3
maven { url ' https://repo.spring.io/plugins-release' }
4
4
}
5
5
dependencies {
6
- classpath ' io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE'
7
- classpath ' io.spring.gradle:spring-io-plugin:0.0.8.RELEASE'
8
6
classpath ' io.spring.gradle:docbook-reference-plugin:0.3.1'
9
- classpath ' org.asciidoctor:asciidoctor-gradle-plugin:1.5.0 '
7
+ classpath ' org.asciidoctor:asciidoctor-gradle-plugin:1.5.3 '
10
8
}
11
9
}
12
10
13
11
plugins {
14
- id ' org.sonarqube' version ' 2.5 '
12
+ id ' org.sonarqube' version ' 2.6.2 '
15
13
id ' base'
16
14
id ' project-report'
17
15
id ' idea'
18
16
}
19
17
20
18
description = ' Spring Kafka'
21
19
22
- def docsDir = ' src/reference/asciidoc' // Will be default with newer asciidoctor plugin
20
+ def docsDir = ' src/reference/asciidoc'
23
21
24
22
ext {
25
23
linkHomepage = ' https://github.com/spring-projects/spring-kafka'
@@ -36,7 +34,7 @@ allprojects {
36
34
37
35
repositories {
38
36
maven { url ' https://repo.spring.io/libs-milestone' }
39
- if (version. endsWith(' BUILD-SNAPSHOT' ) || project . hasProperty( ' platformVersion ' ) ) {
37
+ if (version. endsWith(' BUILD-SNAPSHOT' )) {
40
38
maven { url ' https://repo.spring.io/libs-snapshot' }
41
39
}
42
40
}
@@ -52,18 +50,6 @@ subprojects { subproject ->
52
50
apply plugin : ' jacoco'
53
51
apply plugin : ' checkstyle'
54
52
55
- if (project. hasProperty(' platformVersion' )) {
56
- apply plugin : ' spring-io'
57
-
58
- dependencyManagement {
59
- springIoTestRuntime {
60
- imports {
61
- mavenBom " io.spring.platform:platform-bom:${ platformVersion} "
62
- }
63
- }
64
- }
65
- }
66
-
67
53
compileJava {
68
54
sourceCompatibility = 1.8
69
55
targetCompatibility = 1.8
@@ -72,19 +58,18 @@ subprojects { subproject ->
72
58
ext {
73
59
assertjVersion = ' 3.9.1'
74
60
hamcrestVersion = ' 1.3'
75
- jacksonVersion = ' 2.9.4 '
61
+ jacksonVersion = ' 2.9.5 '
76
62
jaywayJsonPathVersion = ' 2.4.0'
77
63
junit4Version = ' 4.12'
78
- junitJupiterVersion = ' 5.1.0'
79
- junitPlatformVersion = ' 1.1.0'
80
- junitVintageVersion = ' 5.1.0'
64
+ junitJupiterVersion = ' 5.1.1'
65
+ junitPlatformVersion = ' 1.1.1'
81
66
kafkaVersion = ' 1.1.0'
82
67
log4jVersion = ' 2.11.0'
83
- mockitoVersion = ' 2.15 .0'
68
+ mockitoVersion = ' 2.18 .0'
84
69
scalaVersion = ' 2.11'
85
70
springRetryVersion = ' 1.2.2.RELEASE'
86
- springVersion = ' 5.0.4.RELEASE '
87
- springDataCommonsVersion = ' 2.0.4.RELEASE '
71
+ springVersion = ' 5.1.0.BUILD-SNAPSHOT '
72
+ springDataCommonsVersion = ' 2.1.0.BUILD-SNAPSHOT '
88
73
89
74
idPrefix = ' kafka'
90
75
@@ -103,12 +88,11 @@ subprojects { subproject ->
103
88
testRuntime " org.junit.platform:junit-platform-launcher:$junitPlatformVersion "
104
89
105
90
// To support JUnit 4 tests
106
- testRuntime " org.junit.vintage:junit-vintage-engine:$j unitVintageVersion "
91
+ testRuntime " org.junit.vintage:junit-vintage-engine:$j unitJupiterVersion "
107
92
108
93
// To avoid compiler warnings about @API annotations in JUnit code
109
94
testCompileOnly ' org.apiguardian:apiguardian-api:1.0.0'
110
95
111
- testRuntime " org.apache.logging.log4j:log4j-core:$log4jVersion "
112
96
testRuntime " org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion "
113
97
}
114
98
@@ -128,7 +112,7 @@ subprojects { subproject ->
128
112
129
113
checkstyle {
130
114
configFile = file(" ${ rootDir} /src/checkstyle/checkstyle.xml" )
131
- toolVersion = " 8.8 "
115
+ toolVersion = " 8.9 "
132
116
}
133
117
134
118
jacocoTestReport {
@@ -191,8 +175,6 @@ project ('spring-kafka') {
191
175
compile (" com.jayway.jsonpath:json-path:$jaywayJsonPathVersion " , optional)
192
176
193
177
testCompile project (" :spring-kafka-test" )
194
- testCompile " org.assertj:assertj-core:$assertjVersion "
195
- testCompile " org.springframework:spring-tx:$springVersion "
196
178
}
197
179
}
198
180
@@ -222,12 +204,13 @@ project ('spring-kafka-test') {
222
204
}
223
205
}
224
206
225
- apply plugin : org.asciidoctor.gradle.AsciidoctorPlugin
207
+ apply plugin : ' org.asciidoctor.convert '
226
208
227
209
asciidoctor {
228
- sourceDir file(" $docsDir " )
229
- sourceDocumentNames = files(" $docsDir /index.adoc" ) // Change in >= 1.5.1
230
- outputDir file(" $buildDir /html" )
210
+ sourceDir = file(" $docsDir " )
211
+ sources {
212
+ include ' index.adoc'
213
+ }
231
214
backends = [' html5' , ' docbook' ]
232
215
logDocuments = true
233
216
options = [
@@ -250,7 +233,7 @@ apply plugin: DocbookReferencePlugin
250
233
251
234
reference {
252
235
sourceFileName = ' index.xml'
253
- sourceDir = file(" $buildDir /html " )
236
+ sourceDir = file(" $buildDir /reference-work/docbook " )
254
237
pdfFilename = ' spring-kafka-reference.pdf'
255
238
expandPlaceholders = ' '
256
239
}
@@ -339,37 +322,6 @@ task distZip(type: Zip, dependsOn: [docsZip]) { //, schemaZip]) {
339
322
}
340
323
}
341
324
342
- /*
343
- // Create an optional "with dependencies" distribution.
344
- // Not published by default; only for use when building from source.
345
- task depsZip(type: Zip, dependsOn: distZip) { zipTask ->
346
- group = 'Distribution'
347
- classifier = 'dist-with-deps'
348
- description = "Builds -${classifier} archive, containing everything " +
349
- "in the -${distZip.classifier} archive plus all dependencies."
350
-
351
- from zipTree(distZip.archivePath)
352
-
353
- gradle.taskGraph.whenReady { taskGraph ->
354
- if (taskGraph.hasTask(":${zipTask.name}")) {
355
- def projectName = rootProject.name
356
- def artifacts = new HashSet()
357
-
358
- rootProject.configurations.runtime.resolvedConfiguration.resolvedArtifacts.each { artifact ->
359
- def dependency = artifact.moduleVersion.id
360
- if (!projectName.equals(dependency.name)) {
361
- artifacts << artifact.file
362
- }
363
- }
364
-
365
- zipTask.from(artifacts) {
366
- into "${distZip.baseDir}/deps"
367
- }
368
- }
369
- }
370
- }
371
- */
372
-
373
325
artifacts {
374
326
archives distZip
375
327
archives docsZip
0 commit comments