slfan1989 commented on code in PR #14941:
URL: https://github.com/apache/iceberg/pull/14941#discussion_r2650068981
##########
build.gradle:
##########
@@ -1230,3 +1240,18 @@ project(':iceberg-bom') {
// Needed to get the "faked" Scala artifacts into the bom
javaPlatform { allowDependencies() }
}
+
+subprojects {
+ if (project.name.startsWith('iceberg-spark') ||
+ project.name.startsWith('iceberg-flink') ||
+ project.name.startsWith('iceberg-kafka-connect')) {
+
+ configurations.all {
+ exclude group: 'org.lz4', module: 'lz4-java'
Review Comment:
This is a global exclusion rule. After applying this rule, we can use the
following command for validation.
```
gradlew --parallel \
-DsparkVersions=4.0 \
-DscalaVersion=2.13 \
:iceberg-spark:iceberg-spark-4.0_2.13:dependencies \
:iceberg-spark:iceberg-spark-extensions-4.0_2.13:dependencies \
:iceberg-spark:iceberg-spark-runtime-4.0_2.13:dependencies \
--configuration compileClasspath \
-Pquick=true \
--refresh-dependencies|grep "lz4"
```
The result is as follows:
```
| +--- at.yawk.lz4:lz4-java:1.10.2
| +--- at.yawk.lz4:lz4-java:1.10.2
| +--- at.yawk.lz4:lz4-java:1.10.2
| +--- at.yawk.lz4:lz4-java:1.10.2
| +--- at.yawk.lz4:lz4-java:1.10.2
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]