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

[CI] Add Java 21 compiling to J17 and native J21 #16672

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

holgerfriedrich
Copy link
Member

As we have implemented all changes that allow for Java 21 builds, I'd like to introduce it in the CI as well.
For full Java 21 support, we are still lacking a solution for changed serialization openhab/openhab-core#4174, which currently prohibits changing the JDK version of an existing installation.

This does not affect the build and test, so I propose to add 2 new build targets to the CI in addition to the existing Java 17 build:

  • Java 21, generating Java 17 class files
  • profile-j21, i.e. Java 21, generating Java 21 class files

This approach is already implemented and merged in openhab-core, see openhab/openhab-core#4186.

I have already tested this on my forked repo and rebased a few times to check if it works reliably.
https://github.com/holgerfriedrich/openhab-addons/actions

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich holgerfriedrich requested a review from a team as a code owner April 21, 2024 15:38
@holgerfriedrich holgerfriedrich added the infrastructure Build system and Karaf related issues and PRs label Apr 21, 2024
@kaikreuzer kaikreuzer merged commit 4cc5a27 into openhab:main Apr 22, 2024
5 checks passed
@kaikreuzer kaikreuzer added this to the 4.2 milestone Apr 22, 2024
lo92fr pushed a commit to lo92fr/openhab-addons that referenced this pull request Apr 30, 2024
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jun 15, 2024
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
@holgerfriedrich holgerfriedrich deleted the pr-ci-java21 branch July 27, 2024 13:24
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Jan 2, 2025
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Build system and Karaf related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants