Commit aced4dc
authored
Upgrade to Dokka 2.1.0
* Upgrade to Dokka 2.1.0
- Update `org.jetbrains.dokka` plugin from 2.0.0 to 2.1.0
- Remove Jackson 2.15.3 version resolution strategy workaround that
was needed to avoid conflicts in Dokka 2.0.0
- Migrate from deprecated V1 tasks (`dokkaHtmlPartial`,
`dokkaHtmlMultiModule`) to V2 API (`dokkaGeneratePublicationHtml`,
`dokkaGenerate`)
- Replace `dokkaSourceSets.main` configuration block with
`dokkaSourceSets.configureEach`
- Update `docsZip` task to depend on new
`dokkaGeneratePublicationHtml` task and add explicit dependency on
`:spring-integration-core:dokkaGenerate`
* Restore external documentation links for Dokka
- Restore external documentation links in spring-integration-core's
`dokkaSourceSets` using the new `externalDocumentationLinks.
register()` API instead of deprecated `externalDocumentationLink`
- Fix indentation of spring-integration-core's `dokka` configuration
block to be properly scoped within the project
- Remove redundant `noJdkLink.set(false)` setting (false is default)
- Remove unnecessary root-level `dokka` configuration that was
setting module name and output directory without effect
- Remove unused `dokkaGeneratePublicationHtml` task dependency from
`docsZip` as `dokkaGenerate` already handles the generation
- Simplify dependency chain by relying solely on
`:spring-integration-core:dokkaGenerate`
- Use root project var to determine root
- Move the out of core module
This makes the dokka build available to all modules if necessary
- Only run the module in the core module
* Optimize Dokka to process selected modules only
- Refactor Dokka configuration to apply only to modules with Kotlin
sources, reducing build overhead and improving performance for
modules without Kotlin code.
- Remove deprecated commands
* Simplify Dokka configuration with auto-discovery
Replace static `dokkaProjects` list with dynamic Kotlin source
detection, eliminating manual maintenance and improving automation.
- Remove `dokkaProjects` list from ext block that required manual
updates when adding Kotlin modules
- Move Dokka plugin and configuration back into main `javaProjects`
configure block for simpler structure
- Update `docsZip` task to dynamically find projects with Kotlin
sources using `javaProjects.findAll {it.file('src/main/kotlin').
exists()}` instead of referencing static list
- Change output directory API from `buildDirectory.file('kdoc')` to
`buildDirectory.dir('kdoc')` for semantically correct directory
reference
* Use dokka plugin on required modules1 parent 7a33738 commit aced4dc
1 file changed
+41
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 182 | | |
191 | 183 | | |
192 | 184 | | |
| |||
416 | 408 | | |
417 | 409 | | |
418 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
419 | 435 | | |
420 | 436 | | |
421 | 437 | | |
| |||
477 | 493 | | |
478 | 494 | | |
479 | 495 | | |
480 | | - | |
481 | 496 | | |
482 | 497 | | |
483 | 498 | | |
| |||
520 | 535 | | |
521 | 536 | | |
522 | 537 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | 538 | | |
545 | 539 | | |
546 | 540 | | |
| |||
1107 | 1101 | | |
1108 | 1102 | | |
1109 | 1103 | | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | 1104 | | |
1117 | 1105 | | |
1118 | 1106 | | |
| |||
1150 | 1138 | | |
1151 | 1139 | | |
1152 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1153 | 1154 | | |
1154 | | - | |
| 1155 | + | |
1155 | 1156 | | |
1156 | 1157 | | |
1157 | 1158 | | |
| |||
1165 | 1166 | | |
1166 | 1167 | | |
1167 | 1168 | | |
1168 | | - | |
| 1169 | + | |
1169 | 1170 | | |
1170 | 1171 | | |
1171 | 1172 | | |
| |||
0 commit comments