@@ -2,7 +2,7 @@ buildscript {
22 ext. kotlinVersion = ' 1.5.31'
33 repositories {
44 mavenCentral()
5- maven { url ' https://plugins.gradle.org/m2 ' }
5+ gradlePluginPortal()
66 maven { url ' https://repo.spring.io/plugins-release' }
77 }
88 dependencies {
4444 linkScmDevConnection
= ' [email protected] :spring-projects/spring-kafka.git' 4545 docResourcesVersion = ' 0.2.5'
4646
47+ javadocLinks = [
48+ ' https://docs.oracle.com/en/java/javase/17/docs/api/' ,
49+ ' https://docs.spring.io/spring-framework/docs/current/javadoc-api/'
50+ ] as String []
51+
4752
4853 if (gitPresent) {
4954 modifiedFiles =
5661 hamcrestVersion = ' 2.2'
5762 hibernateValidationVersion = ' 6.2.0.Final'
5863 jacksonBomVersion = ' 2.13.1'
59- jaywayJsonPathVersion = ' 2.4 .0'
64+ jaywayJsonPathVersion = ' 2.6 .0'
6065 junit4Version = ' 4.13.2'
6166 junitJupiterVersion = ' 5.8.2'
6267 kafkaVersion = ' 3.0.0'
@@ -65,10 +70,10 @@ ext {
6570 mockitoVersion = ' 4.0.0'
6671 reactorVersion = ' 2020.0.14'
6772 scalaVersion = ' 2.13'
68- springBootVersion = ' 2.5.7 ' // docs module
69- springDataVersion = ' 2021 .1.0'
73+ springBootVersion = ' 2.6.1-SNAPSHOT ' // docs module
74+ springDataVersion = ' 2022 .1.0-SNAPSHOT '
7075 springRetryVersion = ' 1.3.1'
71- springVersion = ' 5.3.14 '
76+ springVersion = ' 6.0.0-SNAPSHOT '
7277 zookeeperVersion = ' 3.6.3'
7378
7479 idPrefix = ' kafka'
@@ -136,25 +141,25 @@ subprojects { subproject ->
136141 }
137142
138143 compileJava {
139- sourceCompatibility = 1.8
140- targetCompatibility = 1.8
144+ sourceCompatibility = 17
145+ targetCompatibility = 17
141146 }
142147
143148 compileTestJava {
144- sourceCompatibility = 11
149+ sourceCompatibility = 17
145150 options. encoding = ' UTF-8'
146151 }
147152
148153 compileTestKotlin {
149154 kotlinOptions {
150- jvmTarget = ' 11 '
155+ jvmTarget = ' 16 '
151156 }
152157 }
153158
154159 eclipse. project. natures + = ' org.springframework.ide.eclipse.core.springnature'
155160
156161 jacoco {
157- toolVersion = ' 0.8.6 '
162+ toolVersion = ' 0.8.7 '
158163 }
159164
160165 // dependencies that are common across all java projects
@@ -291,6 +296,11 @@ subprojects { subproject ->
291296 }
292297 }
293298
299+ tasks. withType(Javadoc ) {
300+ options. addBooleanOption(' Xdoclint:syntax' , true ) // only check syntax with doclint
301+ options. addBooleanOption(' Werror' , true ) // fail build on Javadoc warnings
302+ }
303+
294304}
295305
296306project (' spring-kafka' ) {
@@ -374,7 +384,7 @@ project ('spring-kafka-docs') {
374384
375385 compileKotlin {
376386 kotlinOptions {
377- jvmTarget = ' 1.8 '
387+ jvmTarget = ' 16 '
378388 }
379389 }
380390
@@ -485,10 +495,17 @@ task api(type: Javadoc) {
485495 group = ' Documentation'
486496 description = ' Generates aggregated Javadoc API documentation.'
487497 title = " ${ rootProject.description} ${ version} API"
488- options. memberLevel = org.gradle.external.javadoc.JavadocMemberLevel . PROTECTED
489- options. author = true
490- options. header = rootProject. description
491- options. overview = ' src/api/overview.html'
498+ options {
499+ encoding = ' UTF-8'
500+ memberLevel = org.gradle.external.javadoc.JavadocMemberLevel . PROTECTED
501+ author = true
502+ header = rootProject. description
503+ use = true
504+ overview = ' src/api/overview.html'
505+ splitIndex = true
506+ links(project. ext. javadocLinks)
507+ addBooleanOption(' Xdoclint:syntax' , true ) // only check syntax with doclint
508+ }
492509
493510 source subprojects. collect { project ->
494511 project. sourceSets. main. allJava
0 commit comments