mimaison commented on code in PR #15532: URL: https://github.com/apache/kafka/pull/15532#discussion_r1541600741
########## build.gradle: ########## @@ -1435,10 +1454,10 @@ project(':clients') { implementation libs.opentelemetryProto // libraries which should be added as runtime dependencies in generated pom.xml should be defined here: - shadow libs.zstd - shadow libs.lz4 - shadow libs.snappy - shadow libs.slf4jApi + shadowed libs.zstd + shadowed libs.lz4 + shadowed libs.snappy + shadowed libs.slf4jApi Review Comment: I wonder if below in `shadowJar`, we should do something like: ``` // dependencies excluded from the final jar, since they are declared as runtime dependencies dependencies { project.configurations.shadowed.allDependencies.each { exclude(dependency(it.group + ':' + it.name)) } // exclude proto files from the jar exclude "**/opentelemetry/proto/**/*.proto" exclude "**/google/protobuf/*.proto" } ``` Instead of what we currently have where we again list these dependencies: ``` exclude(dependency(libs.snappy)) exclude(dependency(libs.zstd)) exclude(dependency(libs.lz4)) exclude(dependency(libs.slf4jApi)) ``` This would avoid having these diverge in the future. WDYT? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org