You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by js...@apache.org on 2022/09/09 14:52:54 UTC

[kafka] branch 3.3 updated: KAFKA-14198; swagger-jaxrs2 dependency should be compileOnly (#12609)

This is an automated email from the ASF dual-hosted git repository.

jsancio pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 1eedaca8fb KAFKA-14198; swagger-jaxrs2 dependency should be compileOnly (#12609)
1eedaca8fb is described below

commit 1eedaca8fb8af0109097ccf03d197a876b69c020
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Fri Sep 9 07:49:29 2022 -0700

    KAFKA-14198; swagger-jaxrs2 dependency should be compileOnly (#12609)
    
    Verified that the artifact generated by `releaseTarGz` no longer includes
    swagger-jaxrs2 or its dependencies (like snakeyaml).
    
    Reviewers: José Armando García Sancio <js...@users.noreply.github.com>, Chris Egerton <fe...@gmail.com>
---
 build.gradle | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index baf5b9fe79..ee99cb7c87 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2539,9 +2539,10 @@ project(':connect:runtime') {
     implementation libs.jettyClient
     implementation libs.reflections
     implementation libs.mavenArtifact
-    implementation libs.swaggerJaxrs2
     implementation libs.swaggerAnnotations
 
+    compileOnly libs.swaggerJaxrs2
+
     testImplementation project(':clients').sourceSets.test.output
     testImplementation project(':core')
     testImplementation project(':metadata')
@@ -2629,7 +2630,8 @@ project(':connect:runtime') {
   }
 
   task genConnectOpenAPIDocs(type: io.swagger.v3.plugins.gradle.tasks.ResolveTask, dependsOn: setVersionInOpenAPISpec) {
-    classpath = sourceSets.main.runtimeClasspath
+    classpath = sourceSets.main.compileClasspath + sourceSets.main.runtimeClasspath
+
     buildClasspath = classpath
     outputFileName = 'connect_rest'
     outputFormat = 'YAML'