Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eclipse/xtext#2721] use maven gson instead of orbit gson #354

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

cdietrich
Copy link
Member

[eclipse/xtext#2721] use maven gson instead of orbit gson

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
@@ -19,7 +19,7 @@
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/nightly/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="com.google.gson" version="2.10.1.v20230109-0753"/>
<unit id="com.google.gson" version="2.10.1"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm the manifest of gson 2.10.1 has

Export-Package: com.google.gson;uses:="com.google.gson.reflect,com.googl
 e.gson.stream";version="2.10.1",
 com.google.gson.annotations;version="2.10.1",
 com.google.gson.reflect;version="2.10.1",
 com.google.gson.stream;version="2.10.1"
Import-Package: sun.misc;resolution:=optional,com.google.gson.annotations

It imports its own package without a version constraint and exports it with a version constraint.

The orbit gson doesn't look great either:

Export-Package: com.google.gson.internal;x-internal:=true;version="2.10.1";uses:="com.google.gson,com.google.gson.reflect,com.google.gson.stream",
 com.google.gson.internal.bind;x-internal:=true;version="2.10.1";uses:="com.google.gson,com.google.gson.internal,com.google.gson.reflect,com
 .google.gson.stream",
 com.google.gson.internal.bind.util;x-internal:=true;version="2.10.1",
 com.google.gson.internal.reflect;x-internal:=true;version="2.10.1";uses:="com.google.gson",
 com.google.gson.internal.sql;x-internal:=true;version="2.10.1";uses:="com.google.gson,com.google.gson.i
 nternal.bind",
 com.google.gson;version="2.10.1";uses:="com.google.gson.internal,com.google.gson.reflect,com.google.gson.stream",
 com.google.gson.annotations;version="2.10.1",
 com.google.gson.reflect;version="2.10.1",
 com.google.gson.stream;version="2.10.1"
Import-Package: com.google.gson;version="[2.10,3)",
 com.google.gson.annotations;version="[2.10,3)",
 com.google.gson.internal;version="[2.10,3)",
 com.google.gson.internal.bind;version="[2.10,3)",
 com.google.gson.internal.bind.util;version="[2.10,3)",
 com.google.gson.internal.reflect;version="[2.10,3)",
 com.google.gson.internal.sql;version="[2.10,3)",
 com.google.gson.reflect;version="[2.10,3)",
 com.google.gson.stream;version="[2.10,3)",sun.misc;resolution:=optional

I assume the Maven definition uses substitutable API package imports of exported packages (https://docs.osgi.org/specification/osgi.core/8.0.0/framework.module.html#i3238802) so seems to be more correct.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what a mess

@cdietrich cdietrich merged commit 61d8221 into master Jun 30, 2023
32 checks passed
@cdietrich cdietrich deleted the cd_issue2721 branch June 30, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants