This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun 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 63fd088 [SPARK-57796] Exclude `org.checkerframework` dependency
63fd088 is described below
commit 63fd0880647fb5344e192b982ef0bb91d4343ca9
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Jun 30 19:55:14 2026 -0700
[SPARK-57796] Exclude `org.checkerframework` dependency
### What changes were proposed in this pull request?
This PR excludes the `org.checkerframework` dependency (transitively pulled
in by Spark via Guava) from the Spark dependency configurations in both
`spark-submission-worker` (`spark-kubernetes`) and `spark-operator`
(`spark-core`).
### Why are the changes needed?
`org.checkerframework:checker-qual` is a compile-time annotation-only
artifact that is not needed at runtime. Excluding it removes an unnecessary
dependency from the operator's runtime classpath and shaded jar.
Before this change, `checker-qual` appeared in the runtime classpath:
```
$ ./gradlew -q :spark-operator:dependencies --configuration
runtimeClasspath | grep checker
| | +--- org.checkerframework:checker-qual:3.33.0
```
After this change, it is no longer present.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs and verify that `org.checkerframework:checker-qual` is removed
from the runtime classpath:
```
$ ./gradlew -q :spark-operator:dependencies --configuration
runtimeClasspath | grep -ic checker
0
```
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.8
Closes #723 from dongjoon-hyun/SPARK-57796.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
spark-operator/build.gradle | 1 +
spark-submission-worker/build.gradle | 1 +
2 files changed, 2 insertions(+)
diff --git a/spark-operator/build.gradle b/spark-operator/build.gradle
index fd435b5..78ad3e7 100644
--- a/spark-operator/build.gradle
+++ b/spark-operator/build.gradle
@@ -45,6 +45,7 @@ dependencies {
exclude group: "commons-collections", module: "commons-collections"
exclude group: "org.apache.commons", module: "commons-compress"
exclude group: "org.apache.logging.log4j"
+ exclude group: "org.checkerframework"
exclude group: "org.fusesource.leveldbjni"
exclude group: "org.lz4"
exclude group: "org.rocksdb"
diff --git a/spark-submission-worker/build.gradle
b/spark-submission-worker/build.gradle
index 9036d8c..0c28c89 100644
--- a/spark-submission-worker/build.gradle
+++ b/spark-submission-worker/build.gradle
@@ -33,6 +33,7 @@ dependencies {
exclude group: "org.apache.avro"
exclude group: "org.apache.commons", module: "commons-compress"
exclude group: "org.apache.logging.log4j"
+ exclude group: "org.checkerframework"
exclude group: "org.fusesource.leveldbjni"
exclude group: "org.lz4"
exclude group: "org.rocksdb"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]