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

FISH-8635 FISH-8653 Upgrade HK2 and Introduce EE11 Shim #6693

Merged
merged 3 commits into from
May 15, 2024

Conversation

Pandrex247
Copy link
Member

Description

Upgrades HK2 to the version aligned with EE11 APIs (4.0.0) with our patches reapplied as we need them for compilation.

Also introduces the EE11 shim to fudge the OSGi bundle version validation, allowing us to avoid having to do a "big bang" update of all the dependencies all at once.

The shim as introduced here has an upgrade shim for Annotations 2.1 to 3.0, as HK2 now requires Annotations 3.0 but the server is currently providing 2.1 (upgrading annotations would kick off a large dependency chain and will be tackled separately).
The shim also contains a downgrade shim for HK2 itself, as we're not upgrading Jersey at this moment (Jersey 3.1 still uses HK2 3.0) as it also kicks off a chain of dependency updates e.g. Grizzly. This shim also covers the HK2 requirement in InSights, which we will upgrade to a Payara 7 aligned version in a separate piece of work.

Important Info

Blockers

Requires release of HK2 p2: payara/patched-src-hk2#34
Requires the Javassist upgrade from #6630

Testing

New tests

None

Testing Performed

Built the server, started the admin console.

Testing Environment

Windows 11, Zulu Java 21.0.3

Documentation

N/A

Notes for Reviewers

None

Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
Initial shim exports Jakarta Annotations as its newer version and HK2
as its older version to allow dependant modules to resolve without us
kicking off a chain of dependency upgrades

Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
@Pandrex247 Pandrex247 marked this pull request as ready for review May 14, 2024 10:57
@Pandrex247 Pandrex247 requested a review from kalinchan May 14, 2024 13:37
Copy link
Member

@kalinchan kalinchan left a comment

Choose a reason for hiding this comment

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

lgtm

@Pandrex247 Pandrex247 merged commit ca3763d into payara:Payara7 May 15, 2024
1 check passed
@Pandrex247 Pandrex247 deleted the FISH-8635 branch May 15, 2024 10:38
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.

None yet

2 participants