Skip to content

Commit 5430c39

Browse files
authored
Fix duplicate jakarta.json classes between rest5-client and java-client (#1159)
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.
1 parent 8bdbe0b commit 5430c39

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

rest5-client/build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,13 @@ dependencies {
149149
testImplementation("org.apache.commons:commons-lang3:3.14.0")
150150
testImplementation("junit:junit:4.13.2")
151151

152-
// EPL-2.0
152+
// EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
153+
// https://github.com/eclipse-ee4j/jsonp
154+
api("jakarta.json:jakarta.json-api:2.1.3")
155+
156+
// EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
153157
// https://github.com/eclipse-ee4j/parsson
154-
implementation("org.eclipse.parsson:jakarta.json:1.1.7")
158+
implementation("org.eclipse.parsson:parsson:1.1.7")
155159

156160
// // Apache-2.0
157161
// testImplementation("commons-io:commons-io:2.17.0")

0 commit comments

Comments
 (0)