-
Epic
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
R13: Java 17 and associated dependency upgrade
-
Policy 2023-07-19->2023-08-02, Policy 2023-08-02->2023-08-17
-
Done
This epic covers the upgrade of the Policy Framework to Java 17, Spring 6, Springboot 3 and associated dependencies.
This upgrade is required to remove security vulnerabilities, especially in Springboot.
see
https://wiki.onap.org/display/DW/Dependency+Upgrade+in+Policy+Framework
The things to do are:
- Remove dependency to oparent. We should take all the things in the oparent pom into policy/parent.
- On policy/parent/integration, on a local checkout, remove the oparent overrides
- On policy/parent/integration, raise all dependencies onto their latest versions.
On policy/parent.integration, replace all "javax.' imports with their "jakarta." equivalents
- On policy/parent/integration, change <java.version>11</java.version> to 17
- On https://github.com/onap/policy-docker/blob/master/policy-jdk/alpine/src/main/docker/Dockerfile line 51, change openjdk11 to openjdk17
- On https://github.com/onap/policy-docker/blob/master/policy-jre/alpine/src/main/docker/Dockerfile line 50, change openjdk11 to openjdk17
- Start building locally
- parent
- docker
- common
- models
- etc
- Update jenkins jobs
- Update CSITs etc.
What changes will be needed on each repo:
- All "javax." imports change to "jakarta."
- Some minor java17 code changes.
- Compile each repo and fix as you go
Note: xacml-pdp uses a dependency that uses "javax" XML jars so there is incompatibility between the imports in XACML. We will solve this when we come to it.
Look for abandoned commits around December 2022 for most of the detail on this change. The change was not pushed at that time as it was too disruptive.
- blocks
-
POLICY-4786 COMPLETION OF JAVA LANGUAGE UPDATE TO 17
- Closed