You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2026/04/09 06:22:31 UTC
(spark-kubernetes-operator) branch main updated: [SPARK-56409] Consolidate `Netty` exclusions into root `build.gradle`
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new fddd5b1 [SPARK-56409] Consolidate `Netty` exclusions into root `build.gradle`
fddd5b1 is described below
commit fddd5b1fff72c440c1ca121e05f5cefebe57560f
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Wed Apr 8 23:22:23 2026 -0700
[SPARK-56409] Consolidate `Netty` exclusions into root `build.gradle`
### What changes were proposed in this pull request?
This PR consolidates 6 repeated Netty exclusions from 3 dependency blocks into a single global `configurations.all` block in the root `build.gradle`.
### Why are the changes needed?
The same 6 Netty module exclusions (`netty-codec-classes-quic`, `netty-codec-native-quic`, `netty-tcnative-boringssl-static`, `netty-tcnative-classes`, `netty-transport-classes-io_uring`, `netty-transport-native-io_uring`) were duplicated across `spark-submission-worker/build.gradle` and `spark-operator/build.gradle` (16 lines total). Centralizing them reduces maintenance burden and ensures consistency.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CI with the existing tests.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-6)
Closes #624 from dongjoon-hyun/SPARK-56409.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
build.gradle | 6 ++++++
spark-operator/build.gradle | 10 ----------
spark-submission-worker/build.gradle | 6 ------
3 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/build.gradle b/build.gradle
index 2dacb9a..3428d78 100644
--- a/build.gradle
+++ b/build.gradle
@@ -74,6 +74,12 @@ subprojects {
}
configurations.all {
+ exclude group: "io.netty", module: "netty-codec-classes-quic"
+ exclude group: "io.netty", module: "netty-codec-native-quic"
+ exclude group: "io.netty", module: "netty-tcnative-boringssl-static"
+ exclude group: "io.netty", module: "netty-tcnative-classes"
+ exclude group: "io.netty", module: "netty-transport-classes-io_uring"
+ exclude group: "io.netty", module: "netty-transport-native-io_uring"
resolutionStrategy.eachDependency {
if (requested.group == "io.netty" && !requested.name.startsWith("netty-tcnative")) {
useVersion(libs.versions.netty.get())
diff --git a/spark-operator/build.gradle b/spark-operator/build.gradle
index db2e3f1..be73304 100644
--- a/spark-operator/build.gradle
+++ b/spark-operator/build.gradle
@@ -43,12 +43,6 @@ dependencies {
exclude group: "com.ibm.icu"
exclude group: "commons-codec"
exclude group: "commons-collections", module: "commons-collections"
- exclude group: "io.netty", module: "netty-codec-classes-quic"
- exclude group: "io.netty", module: "netty-codec-native-quic"
- exclude group: "io.netty", module: "netty-tcnative-boringssl-static"
- exclude group: "io.netty", module: "netty-tcnative-classes"
- exclude group: "io.netty", module: "netty-transport-classes-io_uring"
- exclude group: "io.netty", module: "netty-transport-native-io_uring"
exclude group: "org.apache.commons", module: "commons-compress"
exclude group: "org.apache.logging.log4j"
exclude group: "org.fusesource.leveldbjni"
@@ -70,10 +64,6 @@ dependencies {
exclude group: 'junit'
}
testImplementation(libs.spark.core) {
- exclude group: "io.netty", module: "netty-codec-classes-quic"
- exclude group: "io.netty", module: "netty-codec-native-quic"
- exclude group: "io.netty", module: "netty-transport-classes-io_uring"
- exclude group: "io.netty", module: "netty-transport-native-io_uring"
exclude group: "org.apache.logging.log4j"
exclude group: "org.slf4j"
}
diff --git a/spark-submission-worker/build.gradle b/spark-submission-worker/build.gradle
index 17a0655..405a426 100644
--- a/spark-submission-worker/build.gradle
+++ b/spark-submission-worker/build.gradle
@@ -30,12 +30,6 @@ dependencies {
exclude group: "commons-codec"
exclude group: "commons-collections", module: "commons-collections"
exclude group: "io.fabric8"
- exclude group: "io.netty", module: "netty-codec-classes-quic"
- exclude group: "io.netty", module: "netty-codec-native-quic"
- exclude group: "io.netty", module: "netty-tcnative-boringssl-static"
- exclude group: "io.netty", module: "netty-tcnative-classes"
- exclude group: "io.netty", module: "netty-transport-classes-io_uring"
- exclude group: "io.netty", module: "netty-transport-native-io_uring"
exclude group: "org.apache.avro"
exclude group: "org.apache.commons", module: "commons-compress"
exclude group: "org.apache.logging.log4j"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org