geyanggang opened a new pull request, #15013: URL: https://github.com/apache/gravitino/pull/15013
### What changes were proposed in this pull request? - Declare `org.json:json` 20260814 directly in `bundles/tencent-bundle/build.gradle.kts`. The version is in `gradle/libs.versions.toml` as `org-json`. - Remove the `org.json/json@20180130` entries from `.github/trivy/trivyignore.yaml`. ### Why are the changes needed? `cos-sts-java` 3.0.8 (from `hadoop-cos`) pulls in `org.json:json` 20180130, which is bundled in the Tencent bundle shaded jar. A direct dependency overrides the transitive version in the shaded jar and in the published POM. Fix: #15012 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - `dependencyInsight` on `:bundles:tencent-bundle` shows `org.json:json:20180130 -> 20260814` through `cos-sts-java`. The generated POM lists `org.json:json:20260814` as a runtime dependency. - `./gradlew :bundles:tencent-bundle:build -PskipITs` passes. The shadow jar contains `META-INF/maven/org.json/json` 20260814. - The classes in the shadow jar call only `JSONObject` (`<init>()`, `<init>(String)`, `get`, `getLong`, `keySet`, `optJSONObject`, `optString`, `put(String, long)`, `put(String, Object)`, `toString`) and `JSONArray` (`<init>()`, `put(Object)`). All exist in 20260814, and a smoke test against the shadow jar exercised them. The 20260814 classes target Java 8 (class version 52). - `spotlessCheck`, `.github/trivy/scan.sh check-exemptions` and `node --test .github/scripts/tests/*.test.cjs` pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
