From 39d4bd8b3d995ca39f1a253cc14532cd2a9f857e Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Wed, 4 Sep 2024 10:26:45 +0900 Subject: [PATCH] [SPARK-49504][BUILD] Add `jjwt` profile ### What changes were proposed in this pull request? This PR aims to add a new profile `jjwt` to provide `jjwt-impl` and `jjwt-jackson` jars files in a Spark distribution. ### Why are the changes needed? To provide an easy way to build a Spark distribution. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually. **BEFORE** ``` $ mvn dependency:tree --pl assembly --am | grep jjwt-impl [INFO] +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test ``` **AFTER** ``` $ mvn dependency:tree --pl assembly --am -Pjjwt | grep jjwt-impl [INFO] +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:compile [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:test [INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.12.6:compile ``` Or, build the distribution. ``` $ dev/make-distribution.sh -Pjjwt $ ls dist/jars/jj* dist/jars/jjwt-api-0.12.6.jar dist/jars/jjwt-impl-0.12.6.jar dist/jars/jjwt-jackson-0.12.6.jar ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47979 from dongjoon-hyun/SPARK-49504. Authored-by: Dongjoon Hyun Signed-off-by: Hyukjin Kwon --- assembly/pom.xml | 8 ++++++++ core/pom.xml | 11 ++++++----- pom.xml | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/assembly/pom.xml b/assembly/pom.xml index e5628ce90fa90..8b21f7e808ce1 100644 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -339,6 +339,14 @@ + + + jjwt + + compile + + + diff --git a/core/pom.xml b/core/pom.xml index 0a339e11a5d20..5ba44f4cff9ae 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -122,19 +122,14 @@ io.jsonwebtoken jjwt-api - 0.12.6 io.jsonwebtoken jjwt-impl - 0.12.6 - test io.jsonwebtoken jjwt-jackson - 0.12.6 - test 17.0.0 3.0.0-M2 + 0.12.6 org.fusesource.leveldbjni @@ -276,6 +277,7 @@ compile compile test + test false @@ -677,6 +679,23 @@ ivy ${ivy.version} + + io.jsonwebtoken + jjwt-api + ${jjwt.version} + + + io.jsonwebtoken + jjwt-impl + ${jjwt.version} + ${jjwt.deps.scope} + + + io.jsonwebtoken + jjwt-jackson + ${jjwt.version} + ${jjwt.deps.scope} + com.google.code.findbugs jsr305 @@ -3809,6 +3828,9 @@ sparkr + + jjwt + aarch64