Sandor Molnar created KNOX-3201:
-----------------------------------
Summary: Knox jersey upgrade to 2.0 for JDK17 compilation
Key: KNOX-3201
URL: https://issues.apache.org/jira/browse/KNOX-3201
Project: Apache Knox
Issue Type: Task
Components: Server, Tests
Affects Versions: 1.6.1, 1.6.0, 2.0.0, 1.5.0, 1.4.0, 2.1.0
Reporter: Sandor Molnar
Assignee: Sandor Molnar
Fix For: 3.0.0
Attachments: image-2025-09-29-10-26-46-101.png,
image-2025-09-29-10-29-53-311.png, image-2025-09-29-10-56-03-673.png,
image-2025-09-29-10-56-31-608.png
Currently, the main {{pom.xml}} declares the jersey dependency
({{{}org.glassfish.jersey.containers{}}}) on 2.6 :
!image-2025-09-29-10-26-46-101.png|height=200!
!image-2025-09-29-10-29-53-311.png|height=200!
However, there is another jersey dependency, within the
{{gateway-test-release}} module, which defines another jersey-related
dependency from {{com.sun.jersey}} on 1.19.4:
!image-2025-09-29-10-56-03-673.png|height=200!
!image-2025-09-29-10-56-31-608.png|height=200!
As seen on the above screenshots, these dependencies are pulled in for tests
only. They can be safely replaced with the main 2.6 Jersey dependencies and the
tests will compile/run as expected.
We also gain the support fro JDK 17, which isn't the case for the old 1.19.4
Sun code.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)