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

Consume lemminx as a bundle from the OSGi runtime #1741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laeubi
Copy link

@laeubi laeubi commented Nov 26, 2024

Currently lemminx is embedded into WWD what has some disadvantages:

  • the jar gets bigger
  • the embedded jar needs to be extracted before it can be used
  • version bumps are required for lemminx updates
  • lemminx can't be updated independent from WWD

This now adds a require-bundle to the manifest (so we are getting a certain version we are compatible with) and uses the bundle wiring to get hold of the bundle and then transform it into a file path.

As discused here

@mickaelistria
Copy link
Contributor

Looks like build.properties needs some cleanup

@laeubi
Copy link
Author

laeubi commented Nov 27, 2024

Looks like build.properties needs some cleanup

Done!

@mickaelistria
Copy link
Contributor

and version needs a bump.

@laeubi
Copy link
Author

laeubi commented Nov 27, 2024

and version needs a bump.

Done!

Currently lemminx is embedded into WWD what has some disadvantages:

- the jar gets bigger
- the embedded jar needs to be extracted before it can be used
- version bumps are required for lemminx updates
- lemminx can't be updated independent from WWD

This now adds a require-bundle to the manifest (so we are getting a
certain version we are compatible with) and uses the bundle wiring to
get hold of the bundle and then transform it into a file path.

Signed-off-by: Christoph Läubrich <[email protected]>
@mickaelistria
Copy link
Contributor

Looks like the test now needs an import-package.

@laeubi
Copy link
Author

laeubi commented Nov 27, 2024

Looks like the test now needs an import-package.

I fear this is due to the core.runtime bundle required and its insane re-exports of al system packages...

@mickaelistria
Copy link
Contributor

I fear this is due to the core.runtime bundle required

If you can replace it with Import-Package, it'd be welcome.

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