Skip to content

Commit dd605f7

Browse files
committed
KAFKA-5146 / move connect dependency from streams to streams-examples sub-module
1 parent 2f36001 commit dd605f7

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

build.gradle

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,18 +1424,9 @@ project(':streams') {
14241424

14251425
dependencies {
14261426
api project(':clients')
1427-
1428-
// use `api` dependency for `connect-json` for compatibility (e.g. users who use `JsonSerializer`/`JsonDeserializer`
1429-
// at compile-time without an explicit dependency on `connect-json`)
1430-
// this dependency should be removed after we unify data API
1431-
api(project(':connect:json')) {
1432-
// this transitive dependency is not used in Streams, and it breaks SBT builds
1433-
exclude module: 'javax.ws.rs-api'
1434-
}
1435-
14361427
// `org.rocksdb.Options` is part of Kafka Streams public api via `RocksDBConfigSetter`
14371428
api libs.rocksDBJni
1438-
1429+
14391430
implementation libs.slf4jApi
14401431
implementation libs.jacksonAnnotations
14411432
implementation libs.jacksonDatabind
@@ -1641,8 +1632,14 @@ project(':streams:examples') {
16411632
archivesBaseName = "kafka-streams-examples"
16421633

16431634
dependencies {
1635+
// this dependency should be removed after we unify data API
1636+
implementation(project(':connect:json')) {
1637+
// this transitive dependency is not used in Streams, and it breaks SBT builds
1638+
exclude module: 'javax.ws.rs-api'
1639+
}
1640+
16441641
implementation project(':streams')
1645-
implementation project(':connect:json') // this dependency should be removed after we unify data API
1642+
16461643
implementation libs.slf4jlog4j
16471644

16481645
testImplementation project(':streams:test-utils')

docs/streams/upgrade-guide.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ <h3><a id="streams_api_changes_300" href="#streams_api_changes_300">Streams API
108108
<li> Overloaded <code>KafkaStreams#metadataForKey</code>: deprecated in Kafka 2.5.0 (<a href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-535%3A+Allow+state+stores+to+serve+stale+reads+during+rebalance">KIP-535</a>).</li>
109109
<li> Overloaded <code>KafkaStreams#store</code>: deprecated in Kafka 2.5.0 (<a href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-562%3A+Allow+fetching+a+key+from+a+single+partition+rather+than+iterating+over+all+the+stores+on+an+instance">KIP-562</a>).</li>
110110
</ul>
111+
<p>
112+
The following dependencies were removed from Kafka Streams:
113+
</p>
114+
<ul>
115+
<li>Connect-json: As of Kafka Streams no longer has a compile time dependency on "connect:json" module (<a href="https://issues.apache.org/jira/browse/KAFKA-5146">KAFKA-5146</a>).
116+
Projects that were relying on this transitive dependency will have to explicitly declare it.</li>
117+
</ul>
111118

112119
<h3><a id="streams_api_changes_280" href="#streams_api_changes_280">Streams API changes in 2.8.0</a></h3>
113120
<p>

docs/upgrade.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ <h5><a id="upgrade_300_notable" href="#upgrade_300_notable">Notable changes in 3
5151
instead.</li>
5252
<li>The Scala <code>kafka.common.MessageFormatter</code> was removed. Plese use the Java <code>org.apache.kafka.common.MessageFormatter</code>.</li>
5353
<li>The <code>MessageFormatter.init(Properties)</code> method was removed. Please use <code>configure(Map)</code> instead.</li>
54+
<li>Kafka Streams no longer has a compile time dependency on "connect:json" module (<a href="https://issues.apache.org/jira/browse/KAFKA-5146">KAFKA-5146</a>).
55+
Projects that were relying on this transitive dependency will have to explicitly declare it.</li>
5456
</ul>
5557
</ul>
5658

0 commit comments

Comments
 (0)