From 755e37e02448694fa35b11cf836d33478f8e91ba Mon Sep 17 00:00:00 2001 From: Chaoyi Sun Date: Wed, 18 Sep 2024 08:47:43 -0700 Subject: [PATCH] [#133] upgrade foundation core modules to java 17 --- build-parent/pom.xml | 16 ++++++++-------- .../aissemble-enforcer-extension/pom.xml | 2 -- foundation/foundation-alerting/pom.xml | 2 +- foundation/foundation-archetype/pom.xml | 6 +++--- .../artifacts-maven-plugin/pom.xml | 1 - .../foundation-model-plugin/pom.xml | 10 ++++++---- .../mda/maven/mojo/PipelineArtifactsMojo.java | 2 +- foundation/foundation-mda/pom.xml | 4 ++-- .../foundation-messaging-java/pom.xml | 12 +++++++++--- .../foundation-messaging-python-service/pom.xml | 15 +++++++++++++++ pom.xml | 3 +-- 11 files changed, 46 insertions(+), 27 deletions(-) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 71720e363..f83f66793 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -28,30 +28,30 @@ 3.2.1 - 3.6.0 - 3.2.0 - 3.1.0 + 3.7.1 + 3.6.0 + 3.2.1 ${version.maven.surefire.plugin} 2.10.3 2.8.0 2.16.1 3.11.4 - 3.2.0 + 3.5.0 20 3.6.0 3.9.0 3.6.9 ${version.quarkus} - 3.2.4 + 3.6.0 3.9.1 2.9.1 4.24.0 0.10.1 3.0.8 - 2.14.2 + 2.15.0 2.6.0 3.8.6 - 1.4.0 + 2.6.2 2.1.1 42.5.1 4.7.7.Final @@ -119,7 +119,7 @@ 3.6.2 ${maven.compiler.argument.source} - 12 + 18 ERROR diff --git a/build-support/aissemble-enforcer-extension/pom.xml b/build-support/aissemble-enforcer-extension/pom.xml index ba703956b..c871679ec 100644 --- a/build-support/aissemble-enforcer-extension/pom.xml +++ b/build-support/aissemble-enforcer-extension/pom.xml @@ -15,8 +15,6 @@ 3.8.6 4.13.2 6.10.4 - 11 - 11 diff --git a/foundation/foundation-alerting/pom.xml b/foundation/foundation-alerting/pom.xml index 927a7b70a..7393aebc9 100644 --- a/foundation/foundation-alerting/pom.xml +++ b/foundation/foundation-alerting/pom.xml @@ -67,7 +67,7 @@ ${version.jakarta.inject} - + org.slf4j slf4j-api diff --git a/foundation/foundation-archetype/pom.xml b/foundation/foundation-archetype/pom.xml index 328700a98..9d294409a 100644 --- a/foundation/foundation-archetype/pom.xml +++ b/foundation/foundation-archetype/pom.xml @@ -68,7 +68,7 @@ org.apache.maven.archetype archetype-packaging - 3.2.0 + 3.2.1 @@ -89,7 +89,7 @@ maven-antrun-plugin - 3.0.0 + 3.1.0 generate-sources @@ -143,7 +143,7 @@ org.codehaus.mojo exec-maven-plugin - 3.0.0 + 3.1.0 test-project-archetype diff --git a/foundation/foundation-maven-plugins/artifacts-maven-plugin/pom.xml b/foundation/foundation-maven-plugins/artifacts-maven-plugin/pom.xml index f406a74d6..d89733ead 100644 --- a/foundation/foundation-maven-plugins/artifacts-maven-plugin/pom.xml +++ b/foundation/foundation-maven-plugins/artifacts-maven-plugin/pom.xml @@ -14,7 +14,6 @@ - 2.4.0 3.3.0 3.1.0 7.17.0 diff --git a/foundation/foundation-maven-plugins/foundation-model-plugin/pom.xml b/foundation/foundation-maven-plugins/foundation-model-plugin/pom.xml index f89e22d4d..93b8986c2 100644 --- a/foundation/foundation-maven-plugins/foundation-model-plugin/pom.xml +++ b/foundation/foundation-maven-plugins/foundation-model-plugin/pom.xml @@ -59,7 +59,7 @@ org.codehaus.plexus plexus-interactivity-api - 1.1 + 1.3 org.apache.maven.plugin-tools @@ -73,9 +73,11 @@ provided - jakarta.inject - jakarta.inject-api - ${version.jakarta.inject} + + javax.inject + javax.inject + ${version.javax.inject} + provided diff --git a/foundation/foundation-maven-plugins/mda-maven-plugin/src/main/java/com/boozallen/mda/maven/mojo/PipelineArtifactsMojo.java b/foundation/foundation-maven-plugins/mda-maven-plugin/src/main/java/com/boozallen/mda/maven/mojo/PipelineArtifactsMojo.java index 8387205cf..e03fc94e9 100644 --- a/foundation/foundation-maven-plugins/mda-maven-plugin/src/main/java/com/boozallen/mda/maven/mojo/PipelineArtifactsMojo.java +++ b/foundation/foundation-maven-plugins/mda-maven-plugin/src/main/java/com/boozallen/mda/maven/mojo/PipelineArtifactsMojo.java @@ -338,7 +338,7 @@ public void retrieveSparkApplications(String pipelineName, Path archiveDir, Pipe throw new NoSuchFileException("No archive present in directory " + archiveDir); } Path archive = archiveOpt.get(); - FileSystem fileSystem = FileSystems.newFileSystem(archive, null); + FileSystem fileSystem = FileSystems.newFileSystem(archive, (ClassLoader) null); Path appsDirToExtract = fileSystem.getPath(getPathToValuesFileDir(implType, pipelineName)); Files.walk(appsDirToExtract, 1).forEach((fileToExtract -> { try { diff --git a/foundation/foundation-mda/pom.xml b/foundation/foundation-mda/pom.xml index 758ac2326..463cc995f 100644 --- a/foundation/foundation-mda/pom.xml +++ b/foundation/foundation-mda/pom.xml @@ -47,7 +47,7 @@ org.codehaus.mojo exec-maven-plugin - 3.1.0 + 3.4.1 create-generator-usage-comments @@ -98,7 +98,7 @@ org.codehaus.plexus plexus-utils - 3.3.1 + 3.5.1 com.boozallen.aissemble diff --git a/foundation/foundation-messaging/foundation-messaging-java/pom.xml b/foundation/foundation-messaging/foundation-messaging-java/pom.xml index 6d2680627..b316642db 100644 --- a/foundation/foundation-messaging/foundation-messaging-java/pom.xml +++ b/foundation/foundation-messaging/foundation-messaging-java/pom.xml @@ -53,9 +53,9 @@ ${version.smallrye.config} - org.jboss.weld.se - weld-se-core - ${version.weld} + jakarta.enterprise + jakarta.enterprise.cdi-api + ${version.jakarta.cdi} @@ -85,5 +85,11 @@ ${version.cucumber.reporting.plugin} test + + org.jboss.weld.se + weld-se-core + ${version.weld} + test + diff --git a/foundation/foundation-messaging/foundation-messaging-python/foundation-messaging-python-service/pom.xml b/foundation/foundation-messaging/foundation-messaging-python/foundation-messaging-python-service/pom.xml index 14a96ee5b..c5e718afe 100644 --- a/foundation/foundation-messaging/foundation-messaging-python/foundation-messaging-python-service/pom.xml +++ b/foundation/foundation-messaging/foundation-messaging-python/foundation-messaging-python-service/pom.xml @@ -39,6 +39,11 @@ + + com.boozallen.aissemble + foundation-core-java + ${project.version} + com.boozallen.aissemble foundation-messaging-java @@ -49,6 +54,16 @@ smallrye-reactive-messaging-provider ${version.smallrye.reactive.messaging} + + org.jboss.weld.se + weld-se-core + ${version.weld} + + + jakarta.inject + jakarta.inject-api + ${version.jakarta.inject} + diff --git a/pom.xml b/pom.xml index 8fc3864a2..709a5c908 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.boozallen.aissemble aissemble-parent - 4 + 5 @@ -70,7 +70,6 @@ 2.0.7 2.20.0 5.7.5 - 1