Browse Source

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 <jsancio@users.noreply.github.com>, Chris Egerton <fearthecellos@gmail.com>
pull/12616/head
Ismael Juma 2 years ago committed by GitHub
parent
commit
b449b8032e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      build.gradle

6
build.gradle

@ -2562,9 +2562,10 @@ project(':connect:runtime') { @@ -2562,9 +2562,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')
@ -2652,7 +2653,8 @@ project(':connect:runtime') { @@ -2652,7 +2653,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'

Loading…
Cancel
Save