Skip to content

Conversation

@tortmayr
Copy link
Contributor

@tortmayr tortmayr commented Apr 17, 2025

What it does

  • Use correct qualified snapshot version
  • Add explicit TypeAdapter for ELists to Graph JSON configurator (required due to a breaking change in GSON 2.13)

P2 build uses 2.11 but m2build can pull in a higher version.
Nevertheless the fix is straight forward and prevents upgrade pains in the future so its preferrable over pinning
GSON to a version < 2.13.0

Fixes eclipse-glsp/glsp/issues/1509

How to test

Follow-ups

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

- Use correct qualified snapshot version
- Add explicit TypeAdapter for ELists to Graph JSON configurator
  (required due to a breaking change in GSON 2.13)
@tortmayr tortmayr requested a review from Copilot April 17, 2025 22:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses GLSP-1509 by fixing the Maven build to correctly use the qualified snapshot version and by adding an explicit TypeAdapter for ELists to the Graph JSON configurator to support changes in GSON 2.13.

  • Change snapshot version qualification
  • Add and register a custom TypeAdapter for ELists via InstanceCreator
Files not reviewed (19)
  • examples/org.eclipse.glsp.example.workflow/META-INF/MANIFEST.MF: Language not supported
  • examples/org.eclipse.glsp.example.workflow/pom.xml: Language not supported
  • plugins/org.eclipse.glsp.graph/META-INF/MANIFEST.MF: Language not supported
  • plugins/org.eclipse.glsp.graph/pom.xml: Language not supported
  • plugins/org.eclipse.glsp.layout/META-INF/MANIFEST.MF: Language not supported
  • plugins/org.eclipse.glsp.layout/pom.xml: Language not supported
  • plugins/org.eclipse.glsp.server.emf/META-INF/MANIFEST.MF: Language not supported
  • plugins/org.eclipse.glsp.server.emf/pom.xml: Language not supported
  • plugins/org.eclipse.glsp.server.websocket/META-INF/MANIFEST.MF: Language not supported
  • plugins/org.eclipse.glsp.server.websocket/pom.xml: Language not supported
  • plugins/org.eclipse.glsp.server/META-INF/MANIFEST.MF: Language not supported
  • plugins/org.eclipse.glsp.server/pom.xml: Language not supported
  • pom.xml: Language not supported
  • releng/org.eclipse.glsp.feature/feature.xml: Language not supported
  • releng/org.eclipse.glsp.feature/pom.xml: Language not supported
  • releng/org.eclipse.glsp.repository/pom.xml: Language not supported
  • releng/pom.xml: Language not supported
  • tests/org.eclipse.glsp.graph.test/pom.xml: Language not supported
  • tests/org.eclipse.glsp.server.test/pom.xml: Language not supported

Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

LGTM!

@tortmayr tortmayr merged commit dca9db7 into master Apr 18, 2025
6 checks passed
@tortmayr tortmayr deleted the issues/1509 branch April 18, 2025 08:32
tortmayr added a commit that referenced this pull request Sep 13, 2025
- Use correct qualified snapshot version
- Add explicit TypeAdapter for ELists to Graph JSON configurator
  (required due to a breaking change in GSON 2.13)

Fixes  eclipse-glsp/glsp/issues/1509
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.

Fix builds for Java and Eclipse

3 participants