|
75 | 75 | dependencies {
|
76 | 76 | compileOnly(apache.kafka.connect.api)
|
77 | 77 | compileOnly(apache.kafka.connect.runtime)
|
| 78 | + compileOnly(project(":site")) |
| 79 | + compileOnly("org.apache.velocity:velocity-engine-core:2.4.1") |
| 80 | + compileOnly("org.apache.velocity.tools:velocity-tools-generic:3.1") |
78 | 81 |
|
79 | 82 | implementation(project(":commons"))
|
80 | 83 | testImplementation(testFixtures(project(":commons")))
|
@@ -257,3 +260,47 @@ signing {
|
257 | 260 | }
|
258 | 261 | signatureTypes = ASCSignatureProvider()
|
259 | 262 | }
|
| 263 | + |
| 264 | +/** ******************************* */ |
| 265 | +/* Documentation building section */ |
| 266 | +/** ******************************* */ |
| 267 | +tasks.register("buildDocs") { |
| 268 | + dependsOn("buildConfigMd") |
| 269 | + dependsOn("buildConfigYml") |
| 270 | +} |
| 271 | + |
| 272 | +tasks.register<JavaExec>("buildConfigMd") { |
| 273 | + mainClass = "io.aiven.kafka.connect.tools.ConfigDoc" |
| 274 | + classpath = |
| 275 | + sourceSets.main |
| 276 | + .get() |
| 277 | + .compileClasspath |
| 278 | + .plus(files(tasks.jar)) |
| 279 | + .plus(sourceSets.main.get().runtimeClasspath) |
| 280 | + args = |
| 281 | + listOf( |
| 282 | + "io.aiven.kafka.connect.s3.config.S3SinkConfig", |
| 283 | + "configDef", |
| 284 | + "src/templates/configData.md.vm", |
| 285 | + "build/site/markdown/s3-sink-connector/S3SinkConfig.md") |
| 286 | +} |
| 287 | + |
| 288 | +tasks.register<JavaExec>("buildConfigYml") { |
| 289 | + mainClass = "io.aiven.kafka.connect.tools.ConfigDoc" |
| 290 | + classpath = |
| 291 | + sourceSets.main |
| 292 | + .get() |
| 293 | + .compileClasspath |
| 294 | + .plus(files(tasks.jar)) |
| 295 | + .plus(sourceSets.main.get().runtimeClasspath) |
| 296 | + args = |
| 297 | + listOf( |
| 298 | + "io.aiven.kafka.connect.s3.config.S3SinkConfig", |
| 299 | + "configDef", |
| 300 | + "src/templates/configData.yml.vm", |
| 301 | + "build/site/s3-sink-connector/S3SinkConfig.yml") |
| 302 | +} |
| 303 | + |
| 304 | +/** ****************************** */ |
| 305 | +/* End of documentation section */ |
| 306 | +/** ****************************** */ |
0 commit comments