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

ramackri pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new e8afc187e RANGER-5718: Add gson to PDP server lib classpath (#1122)
e8afc187e is described below

commit e8afc187e4b00c76e17f69a915b99597d323be43
Author: Ramachandran Krishnan <[email protected]>
AuthorDate: Sat Aug 1 11:34:27 2026 +0530

    RANGER-5718: Add gson to PDP server lib classpath (#1122)
    
    Package gson in the ranger-pdp tarball and declare it as a PDP dependency
    so AbstractRangerAdminClient can initialize GsonBuilder without
    NoClassDefFoundError on plugin startup.
    
    https: //issues.apache.org/jira/browse/RANGER-5718
    
    Co-authored-by: ramk <[email protected]>
    Co-authored-by: Cursor <[email protected]>
---
 distro/src/main/assembly/pdp.xml | 3 +++
 pdp/pom.xml                      | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/distro/src/main/assembly/pdp.xml b/distro/src/main/assembly/pdp.xml
index 19307023e..853248416 100644
--- a/distro/src/main/assembly/pdp.xml
+++ b/distro/src/main/assembly/pdp.xml
@@ -82,6 +82,9 @@
                     <include>org.glassfish.hk2.external:javax.inject</include>
                     <include>org.glassfish:osgi-resource-locator</include>
 
+                    <!-- Gson (policy/role/tag JSON parsing in 
ranger-plugins-common) -->
+                    
<include>com.google.code.gson:gson:jar:${gson.version}</include>
+
                     <!-- Jackson (JSON serialization for authz-api model 
classes) -->
                     
<include>com.fasterxml.jackson.core:jackson-databind:jar:${fasterxml.jackson.databind.version}</include>
                     
<include>com.fasterxml.jackson.core:jackson-core:jar:${fasterxml.jackson.version}</include>
diff --git a/pdp/pom.xml b/pdp/pom.xml
index 9ab4b9184..ea9753217 100644
--- a/pdp/pom.xml
+++ b/pdp/pom.xml
@@ -49,6 +49,11 @@
             <artifactId>jackson-module-jaxb-annotations</artifactId>
             <version>${fasterxml.jackson.version}</version>
         </dependency>
+        <dependency>
+            <groupId>com.google.code.gson</groupId>
+            <artifactId>gson</artifactId>
+            <version>${gson.version}</version>
+        </dependency>
         <dependency>
             <groupId>com.nimbusds</groupId>
             <artifactId>nimbus-jose-jwt</artifactId>

Reply via email to