From commits-return-9688-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Tue Jun 12 10:59:26 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E4D05180608 for ; Tue, 12 Jun 2018 10:59:25 +0200 (CEST) Received: (qmail 64226 invoked by uid 500); 12 Jun 2018 08:59:24 -0000 Mailing-List: contact commits-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list commits@kafka.apache.org Received: (qmail 64217 invoked by uid 99); 12 Jun 2018 08:59:24 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2018 08:59:24 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 35F798299A; Tue, 12 Jun 2018 08:59:24 +0000 (UTC) Date: Tue, 12 Jun 2018 08:59:23 +0000 To: "commits@kafka.apache.org" Subject: [kafka] branch trunk updated: KAFKA-6562: Make jackson-databind an optional clients dependency (#5110) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152879396324.20867.6834045304443254018@gitbox.apache.org> From: ijuma@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: kafka X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: 2bfb239495c97e57ee51f2f462f5d09160a0d67b X-Git-Newrev: dbca6b9b88e8e2eaa6a9c091ce5d88b8229c0d39 X-Git-Rev: dbca6b9b88e8e2eaa6a9c091ce5d88b8229c0d39 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. ijuma pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/kafka.git The following commit(s) were added to refs/heads/trunk by this push: new dbca6b9 KAFKA-6562: Make jackson-databind an optional clients dependency (#5110) dbca6b9 is described below commit dbca6b9b88e8e2eaa6a9c091ce5d88b8229c0d39 Author: Manikumar Reddy O AuthorDate: Tue Jun 12 14:28:58 2018 +0530 KAFKA-6562: Make jackson-databind an optional clients dependency (#5110) Use `provided` scope in Maven. Reviewers: Rajini Sivaram , Ismael Juma --- build.gradle | 12 +++++++++++- docs/security.html | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 911ba09..60476ee 100644 --- a/build.gradle +++ b/build.gradle @@ -785,11 +785,20 @@ project(':examples') { project(':clients') { archivesBaseName = "kafka-clients" + configurations { + jacksonDatabindConfig + } + + // add jacksonDatabindConfig as provided scope config with high priority (1000) + conf2ScopeMappings.addMapping(1000, configurations.jacksonDatabindConfig, "provided") + dependencies { compile libs.lz4 compile libs.snappy compile libs.slf4jApi - compile libs.jacksonDatabind // for SASL/OAUTHBEARER bearer token parsing + compileOnly libs.jacksonDatabind // for SASL/OAUTHBEARER bearer token parsing + + jacksonDatabindConfig libs.jacksonDatabind // to publish as provided scope dependency. testCompile libs.bcpkix testCompile libs.junit @@ -798,6 +807,7 @@ project(':clients') { testCompile libs.powermockEasymock testRuntime libs.slf4jlog4j + testRuntime libs.jacksonDatabind } task determineCommitId { diff --git a/docs/security.html b/docs/security.html index 877ca57..c1682ff 100644 --- a/docs/security.html +++ b/docs/security.html @@ -715,6 +715,8 @@
     security.protocol=SASL_SSL (or SASL_PLAINTEXT if non-production)
     sasl.mechanism=OAUTHBEARER
+
  • The default implementation of SASL/OAUTHBEARER depends on the jackson-databind library. + Since it's an optional dependency, users have to configure it as a dependency via their build tool.
  • Unsecured Token Creation Options for SASL/OAUTHBEARER
    -- To stop receiving notification emails like this one, please contact ijuma@apache.org.