You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/06/08 15:37:27 UTC
[GitHub] [kafka] mimaison commented on a diff in pull request #12067: KAFKA-13780: Generate OpenAPI file for Connect REST API
mimaison commented on code in PR #12067:
URL: https://github.com/apache/kafka/pull/12067#discussion_r892542837
##########
build.gradle:
##########
@@ -2522,6 +2525,26 @@ project(':connect:runtime') {
standardOutput = new File(generatedDocsDir, "connect_metrics.html").newOutputStream()
}
+ task setVersionInOpenAPISpec(type: Copy) {
+ from "$rootDir/gradle/openapi.template"
+ into "$buildDir/resources/docs"
+ rename ('openapi.template', 'openapi.yaml')
+ expand(kafkaVersion: "$rootProject.version")
+ }
+
+ task genConnectOpenAPIDocs(type: io.swagger.v3.plugins.gradle.tasks.ResolveTask, dependsOn: setVersionInOpenAPISpec) {
Review Comment:
I believe this happens automatically because of `classpath = sourceSets.main.runtimeClasspath`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org