kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject [kafka] branch 2.1 updated: KAFKA-7741: streams-scala - document dependency workaround (#6126)
Date Mon, 11 Feb 2019 18:24:12 GMT
This is an automated email from the ASF dual-hosted git repository.

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

The following commit(s) were added to refs/heads/2.1 by this push:
     new 1b74172  KAFKA-7741: streams-scala - document dependency workaround (#6126)
1b74172 is described below

commit 1b74172ea60710e76756971b0f696a498cd660c5
Author: John Roesler <vvcephei@users.noreply.github.com>
AuthorDate: Mon Feb 11 12:23:51 2019 -0600

    KAFKA-7741: streams-scala - document dependency workaround (#6126)
    Document the workaround detailed in https://issues.apache.org/jira/browse/KAFKA-7741
    Reviewers: Matthias J. Sax <matthias@confluent.io>, Guozhang Wang <guozhang@confluent.io>
 docs/streams/developer-guide/dsl-api.html | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/docs/streams/developer-guide/dsl-api.html b/docs/streams/developer-guide/dsl-api.html
index 90c4f6e..9a6c44d 100644
--- a/docs/streams/developer-guide/dsl-api.html
+++ b/docs/streams/developer-guide/dsl-api.html
@@ -3428,6 +3428,17 @@ groupedTable
             <pre class="brush: scala;">
               libraryDependencies += "org.apache.kafka" %% "kafka-streams-scala" % "{{fullDotVersion}}"
+            <p>
+              <strong>Note</strong>:
+              <p>
+                There is an upstream dependency that causes trouble in SBT builds. This problem
is fixed in <code>2.1.1</code>, and <code>2.2.0</code>.
+                Please consider using one of those versions or higher.
+              </p>
+              <p>
+                If you must use an earlier version, you may add an explicit dependency on
the problematic library as a workaround:
+                <pre class="brush: scala;">libraryDependencies += "javax.ws.rs" % "javax.ws.rs-api"
% "2.1.1" artifacts(Artifact("javax.ws.rs-api", "jar", "jar"))</pre>
+              </p>
+            </p>
             <div class="section" id="scala-dsl-sample-usage">
               <span id="streams-developer-guide-dsl-sample-usage"></span><h3><a
class="toc-backref" href="#id28">Sample Usage</a><a class="headerlink" href="#scala-dsl-sample-usage"
title="Permalink to this headline"></a></h3>
               <p>The library works by wrapping the original Java abstractions of Kafka
Streams within a Scala wrapper object and then using implicit conversions between them. All
the Scala abstractions are named identically as the corresponding Java abstraction, but they
reside in a different package of the library e.g. the Scala class <code class="docutils
literal"><span class="pre">org.apache.kafka.streams.scala.StreamsBuilder</span></code>
is a wrapper around <code class="docutils lit [...]

View raw message