Skip to content

Commit

Permalink
KAFKA-6562: Make jackson-databind an optional clients dependency (apa…
Browse files Browse the repository at this point in the history
…che#5110)

Use `provided` scope in Maven.

Reviewers: Rajini Sivaram <[email protected]>, Ismael Juma <[email protected]>
  • Loading branch information
omkreddy authored and ying-zheng committed Jul 6, 2018
1 parent 918155f commit 9cdab60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -798,6 +807,7 @@ project(':clients') {
testCompile libs.powermockEasymock

testRuntime libs.slf4jlog4j
testRuntime libs.jacksonDatabind
}

task determineCommitId {
Expand Down
2 changes: 2 additions & 0 deletions docs/security.html
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,8 @@ <h3><a id="security_sasl" href="#security_sasl">7.3 Authentication using SASL</a
<pre>
security.protocol=SASL_SSL (or SASL_PLAINTEXT if non-production)
sasl.mechanism=OAUTHBEARER</pre></li>
<li>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.</li>
</ol>
</li>
<li><h5><a id="security_sasl_oauthbearer_unsecured_retrieval" href="#security_sasl_oauthbearer_unsecured_retrieval">Unsecured Token Creation Options for SASL/OAUTHBEARER</a></h5>
Expand Down

0 comments on commit 9cdab60

Please sign in to comment.