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

OH 4.0: Bundles must use GSON 2.9.1 instead 2.8.x #14088

Closed
stefan-hoehn opened this issue Dec 28, 2022 · 11 comments
Closed

OH 4.0: Bundles must use GSON 2.9.1 instead 2.8.x #14088

stefan-hoehn opened this issue Dec 28, 2022 · 11 comments
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@stefan-hoehn
Copy link
Contributor

As discussed here https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322/69 there are several bundles that use the unsupported gson version but should use GSON 2.9.1 instead

The following bundles were currently identified to at least need to be updated (I added the code owners here)

Can the code owners please provide fixes as it currently breaks 4.0 (at least on my side ...)

@stefan-hoehn stefan-hoehn added the bug An unexpected problem or unintended behavior of an add-on label Dec 28, 2022
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322/73

@jlaur
Copy link
Contributor

jlaur commented Dec 28, 2022

@stefan-hoehn
Copy link
Contributor Author

As soon as all the four updates have been merged I am happy to pull the latest snapshot and I will provide input for that at https://community.openhab.org/t/oh4-on-buster/142645/21 (or/and) here.

@wborn
Copy link
Member

wborn commented Dec 29, 2022

Everything is merged now!

@wborn wborn closed this as completed Dec 29, 2022
@stefan-hoehn
Copy link
Contributor Author

Thank you, Wouter, and I did test it this morning already. Most likely, these dependencies are gone now but my 4.0 system with the restored database from 3.4 is still not starting up. I will follow up on that topic in the related thread.

@stefan-hoehn
Copy link
Contributor Author

@wborn @jlaur I can finally confirm that the problem is now fixed. Also see https://community.openhab.org/t/oh4-on-buster/142645/30

@clinique
Copy link
Contributor

clinique commented Jan 3, 2023

@wborn : would it be possible to go to version 2.10 in regard of OH4 so we can take advantage of records ?

@wborn
Copy link
Member

wborn commented Jan 4, 2023

lsp4j requires a 2.9.x version so it's only possible when multiple versions are provided:

org.eclipse.lsp4j_0.19.0.v20221118-0359 [131] requires:
-------------------------------------------------------
osgi.wiring.package; (&(osgi.wiring.package=com.google.common.base)(&(version>=30.1.0)(!(version>=31.0.0)))) resolved by:
   osgi.wiring.package; com.google.common.base 30.1.0 from com.google.guava_30.1.0.jre [36]
osgi.wiring.package; (&(osgi.wiring.package=com.google.gson)(&(version>=2.9.1)(!(version>=2.10.0)))) resolved by:
   osgi.wiring.package; com.google.gson 2.9.1 from com.google.gson_2.9.1 [35]
osgi.wiring.package; (&(osgi.wiring.package=com.google.gson.annotations)(&(version>=2.9.1)(!(version>=2.10.0)))) resolved by:
   osgi.wiring.package; com.google.gson.annotations 2.9.1 from com.google.gson_2.9.1 [35]

@J-N-K
Copy link
Member

J-N-K commented Jan 4, 2023

Do you know if there really is an issue with 2.10? Looking through previous requests to increase the version range in their repo seems to indicate they are anxious that google might introduce breaking changes and use a very conservative range because of that.

@wborn
Copy link
Member

wborn commented Jan 4, 2023

It usually works but if we only add 2.10.x, Karaf feature validation will fail and the lsp4j bundle will fail to get started because the version of the package it depends on is not there. So either both versions need to be deployed, a newer Xtext/LSP4J that has updated dependencies is used... or we create an OH version with updated manifest.

@J-N-K
Copy link
Member

J-N-K commented Jan 4, 2023

Yes, that is what I was looking at. If it's really only the manifest, we could create an OH specific version with updated manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

9 participants