This is an automated email from the ASF dual-hosted git repository.
ramackri pushed a commit to branch ranger-2.9
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.9 by this push:
new 0aad6958e RANGER-5718: Add gson to PDP server lib classpath (backport)
0aad6958e is described below
commit 0aad6958efb0bd40b1fcac28a7cab2837e80e20e
Author: ramk <[email protected]>
AuthorDate: Sat Aug 1 11:55:06 2026 +0530
RANGER-5718: Add gson to PDP server lib classpath (backport)
Package gson in the ranger-pdp tarball and declare it as a PDP dependency
so AbstractRangerAdminClient can initialize GsonBuilder without
NoClassDefFoundError on plugin startup.
Backport of e8afc187e (#1122) from master.
https://issues.apache.org/jira/browse/RANGER-5718
---
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 0f644c49f..e2cd5f807 100644
--- a/distro/src/main/assembly/pdp.xml
+++ b/distro/src/main/assembly/pdp.xml
@@ -83,6 +83,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 e5d892f73..69f3f293c 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>