Skip to content

Conversation

@ebarlas
Copy link
Contributor

@ebarlas ebarlas commented Feb 4, 2026

Problem

rest5-client uses org.eclipse.parsson:jakarta.json (a bundled artifact containing both API and implementation), while java-client uses the split jakarta.json:jakarta.json-api + org.eclipse.parsson:parsson. Since java-client depends on rest5-client, this causes duplicate jakarta.json.* classes on the classpath.

Solution

Replace the bundled artifact with the split dependencies to match java-client:

-implementation("org.eclipse.parsson:jakarta.json:1.1.7")
+api("jakarta.json:jakarta.json-api:2.1.3")
+implementation("org.eclipse.parsson:parsson:1.1.7")

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.
@l-trotta l-trotta merged commit 5430c39 into main Feb 5, 2026
13 checks passed
@l-trotta l-trotta deleted the fix/duplicate-jakarta-json-classes branch February 5, 2026 10:16
github-actions bot pushed a commit that referenced this pull request Feb 5, 2026
…nt (#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.
l-trotta pushed a commit that referenced this pull request Feb 5, 2026
…nt (#1159) (#1160)

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.

Co-authored-by: Elliot Barlas <elliotbarlas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants