This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new f8e8a917e133 [SPARK-57110][BUILD] Simplify `jjwt` deps management by 
using BOM
f8e8a917e133 is described below

commit f8e8a917e13324e15d188cb88ab9aae0243b95b9
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed May 27 17:21:22 2026 -0700

    [SPARK-57110][BUILD] Simplify `jjwt` deps management by using BOM
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use `jjwt-bom` to manage `io.jsonwebtoken` artifact 
versions, replacing per-artifact `<version>` declarations. Since a BOM only 
manages versions, the `<scope>${jjwt.deps.scope}</scope>` declarations for 
`jjwt-impl` and `jjwt-jackson` move from the root `<dependencyManagement>` to 
`core/pom.xml` so the `jjwt-provided` profile keeps working.
    
    ### Why are the changes needed?
    
    Simplify dependency management.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (Opus 4.7)
    
    Closes #56155 from dongjoon-hyun/SPARK-57110.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 core/pom.xml |  2 ++
 pom.xml      | 24 +++++++-----------------
 2 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/core/pom.xml b/core/pom.xml
index e342433cee29..5db9a6523383 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -144,10 +144,12 @@
     <dependency>
       <groupId>io.jsonwebtoken</groupId>
       <artifactId>jjwt-impl</artifactId>
+      <scope>${jjwt.deps.scope}</scope>
     </dependency>
     <dependency>
       <groupId>io.jsonwebtoken</groupId>
       <artifactId>jjwt-jackson</artifactId>
+      <scope>${jjwt.deps.scope}</scope>
     </dependency>
 
     <!-- Jetty dependencies promoted to compile here so they are shaded
diff --git a/pom.xml b/pom.xml
index 7fe5b425a1fa..f81573f3d71f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -743,23 +743,6 @@
         <artifactId>ivy</artifactId>
         <version>${ivy.version}</version>
       </dependency>
-      <dependency>
-        <groupId>io.jsonwebtoken</groupId>
-        <artifactId>jjwt-api</artifactId>
-        <version>${jjwt.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>io.jsonwebtoken</groupId>
-        <artifactId>jjwt-impl</artifactId>
-        <version>${jjwt.version}</version>
-        <scope>${jjwt.deps.scope}</scope>
-      </dependency>
-      <dependency>
-        <groupId>io.jsonwebtoken</groupId>
-        <artifactId>jjwt-jackson</artifactId>
-        <version>${jjwt.version}</version>
-        <scope>${jjwt.deps.scope}</scope>
-      </dependency>
       <dependency>
         <groupId>com.google.code.findbugs</groupId>
         <artifactId>jsr305</artifactId>
@@ -1119,6 +1102,13 @@
         <scope>import</scope>
         <type>pom</type>
       </dependency>
+      <dependency>
+        <groupId>io.jsonwebtoken</groupId>
+        <artifactId>jjwt-bom</artifactId>
+        <version>${jjwt.version}</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
       <dependency>
         <groupId>org.apache.ws.xmlschema</groupId>
         <artifactId>xmlschema-core</artifactId>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to