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

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


The following commit(s) were added to refs/heads/2.0 by this push:
     new 51ac53d  KAFKA-7031: Connect API shouldn't depend on Jersey (KIP-285)
51ac53d is described below

commit 51ac53d9037e703507c4b6bdf7658a8793c3c7ec
Author: Magesh Nandakumar <magesh.n.ku...@gmail.com>
AuthorDate: Tue Jun 12 22:15:18 2018 -0700

    KAFKA-7031: Connect API shouldn't depend on Jersey (KIP-285)
    
    Connect API currently depends on Jersey API as a side-effect of KIP-285. It 
should only depend on the JAX RS API.
    
    Author: Magesh Nandakumar <magesh.n.ku...@gmail.com>
    
    Reviewers: Randall Hauch <rha...@gmail.com>, Ewen Cheslack-Postava 
<e...@confluent.io>
    
    Closes #5190 from mageshn/KAFKA-7031
---
 build.gradle               | 3 ++-
 gradle/dependencies.gradle | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 5bd3892..f3cf04d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1221,7 +1221,7 @@ project(':connect:api') {
   dependencies {
     compile project(':clients')
     compile libs.slf4jApi
-    compile libs.jerseyContainerServlet
+    compile libs.jaxrsApi
 
     testCompile libs.junit
 
@@ -1461,6 +1461,7 @@ project(':connect:basic-auth-extension') {
     testCompile project(':clients').sourceSets.test.output
 
     testRuntime libs.slf4jlog4j
+    testRuntime libs.jerseyContainerServlet
   }
 
   javadoc {
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle
index ce2db72..c9f6f03 100644
--- a/gradle/dependencies.gradle
+++ b/gradle/dependencies.gradle
@@ -60,6 +60,7 @@ versions += [
   log4j: "1.2.17",
   scalaLogging: "3.9.0",
   jaxb: "2.3.0",
+  jaxrs: "2.1",
   jfreechart: "1.0.0",
   jopt: "5.0.4",
   junit: "4.12",
@@ -101,6 +102,7 @@ libs += [
   jacksonDatabind: 
"com.fasterxml.jackson.core:jackson-databind:$versions.jackson",
   jacksonJaxrsJsonProvider: 
"com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$versions.jackson",
   jaxbApi: "javax.xml.bind:jaxb-api:$versions.jaxb",
+  jaxrsApi: "javax.ws.rs:javax.ws.rs-api:$versions.jaxrs",
   jettyServer: "org.eclipse.jetty:jetty-server:$versions.jetty",
   jettyClient: "org.eclipse.jetty:jetty-client:$versions.jetty",
   jettyServlet: "org.eclipse.jetty:jetty-servlet:$versions.jetty",

-- 
To stop receiving notification emails like this one, please contact
ewe...@apache.org.

Reply via email to