From 19a4a959f9f89c5bfa97c4a58f21576a1e93d245 Mon Sep 17 00:00:00 2001 From: Elliot Barlas Date: Wed, 4 Feb 2026 10:56:15 -0800 Subject: [PATCH] Fix duplicate jakarta.json classes between rest5-client and java-client Replace the bundled org.eclipse.parsson:jakarta.json artifact with the split dependencies (jakarta.json:jakarta.json-api + parsson) to avoid duplicate classes on the runtime classpath. The bundled artifact includes both API and implementation classes, which conflicts with java-client's separate jakarta.json:jakarta.json-api dependency, causing duplicate class definitions in the jakarta.json package. --- rest5-client/build.gradle.kts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rest5-client/build.gradle.kts b/rest5-client/build.gradle.kts index 99e735d1a4..13a2b6ed63 100644 --- a/rest5-client/build.gradle.kts +++ b/rest5-client/build.gradle.kts @@ -149,9 +149,13 @@ dependencies { testImplementation("org.apache.commons:commons-lang3:3.14.0") testImplementation("junit:junit:4.13.2") - // EPL-2.0 + // EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + // https://github.com/eclipse-ee4j/jsonp + api("jakarta.json:jakarta.json-api:2.1.3") + + // EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 // https://github.com/eclipse-ee4j/parsson - implementation("org.eclipse.parsson:jakarta.json:1.1.7") + implementation("org.eclipse.parsson:parsson:1.1.7") // // Apache-2.0 // testImplementation("commons-io:commons-io:2.17.0")