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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to