Skip to content

Commit

Permalink
[yaml] package kafka_clients 3.1.2 in Kafka Provider jar
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber committed Oct 2, 2024
1 parent 1bb3571 commit 0f0f23b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/java/io/expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ dependencies {
runtimeOnly ("org.apache.iceberg:iceberg-hive-metastore:1.4.2")
runtimeOnly project(path: ":sdks:java:io:iceberg:hive:exec", configuration: "shadow")

runtimeOnly library.java.kafka_clients
// TODO(https://github.com/apache/beam/pull/32486/) Use library.java.kafka_clients once 3.1.2 is set as default
runtimeOnly ("org.apache.kafka:kafka-clients:3.1.2")
runtimeOnly library.java.slf4j_jdk14
}

Expand Down
1 change: 1 addition & 0 deletions sdks/java/io/kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def kafkaVersions = [
'231': "2.3.1",
'241': "2.4.1",
'251': "2.5.1",
'312': "3.1.2",
]

kafkaVersions.each{k,v -> configurations.create("kafkaVersion$k")}
Expand Down
24 changes: 24 additions & 0 deletions sdks/java/io/kafka/kafka-312/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
project.ext {
delimited="3.1.2"
undelimited="312"
sdfCompatible=true
}

apply from: "../kafka-integration-test.gradle"

0 comments on commit 0f0f23b

Please sign in to comment.