From f24ba3e1abe43f7f605e18098a87c4624188d806 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 14 Oct 2022 13:07:36 +0100 Subject: Clean up dependencies in CLAMP POMs External dependencies should in general be in the root POMs of repos and internal dependencies only in child POMs. There are exceptions whare a child modle is dealing with a specific technology. This commit tidies up the CLAMP POMs. Issue-ID: POLICY-4289 Change-Id: I0493daf1d737222bd724333ab8baab9226da6121 Signed-off-by: liamfallon --- models/pom.xml | 4 -- packages/policy-clamp-docker/pom.xml | 60 ++++++++++----------- .../participant-impl-kubernetes/pom.xml | 10 ---- participant/pom.xml | 20 ------- pom.xml | 25 ++++++++- runtime-acm/pom.xml | 62 ---------------------- 6 files changed, 53 insertions(+), 128 deletions(-) diff --git a/models/pom.xml b/models/pom.xml index 79f40c3ad..911ce12ec 100644 --- a/models/pom.xml +++ b/models/pom.xml @@ -39,10 +39,6 @@ policy-clamp-examples ${project.version} - - org.springframework.boot - spring-boot-starter-data-jpa - diff --git a/packages/policy-clamp-docker/pom.xml b/packages/policy-clamp-docker/pom.xml index 8b90f0242..454abf041 100644 --- a/packages/policy-clamp-docker/pom.xml +++ b/packages/policy-clamp-docker/pom.xml @@ -56,6 +56,36 @@ yyyyMMdd'T'HHmm + + + org.onap.policy.clamp + policy-clamp-tarball + ${project.version} + tarball + tar.gz + + + org.onap.policy.clamp.participant + policy-clamp-participant-impl-policy + ${project.version} + + + org.onap.policy.clamp.participant + policy-clamp-participant-impl-kubernetes + ${project.version} + + + org.onap.policy.clamp.participant + policy-clamp-participant-impl-http + ${project.version} + + + org.onap.policy.clamp.participant + policy-clamp-acm-element-impl + ${project.version} + + + ${project.artifactId}-${project.version} @@ -318,34 +348,4 @@ - - - - org.onap.policy.clamp - policy-clamp-tarball - ${project.version} - tarball - tar.gz - - - org.onap.policy.clamp.participant - policy-clamp-participant-impl-policy - ${project.version} - - - org.onap.policy.clamp.participant - policy-clamp-participant-impl-kubernetes - ${project.version} - - - org.onap.policy.clamp.participant - policy-clamp-participant-impl-http - ${project.version} - - - org.onap.policy.clamp.participant - policy-clamp-acm-element-impl - ${project.version} - - diff --git a/participant/participant-impl/participant-impl-kubernetes/pom.xml b/participant/participant-impl/participant-impl-kubernetes/pom.xml index 29c139ffe..fff61c0ff 100644 --- a/participant/participant-impl/participant-impl-kubernetes/pom.xml +++ b/participant/participant-impl/participant-impl-kubernetes/pom.xml @@ -32,16 +32,6 @@ ${project.artifactId} Kubernetes participant, that allows k8s pods to partake in automation compositions - - - - org.mockito - mockito-inline - 3.8.0 - test - - - diff --git a/participant/pom.xml b/participant/pom.xml index eef52c804..5c85d7687 100644 --- a/participant/pom.xml +++ b/participant/pom.xml @@ -93,32 +93,12 @@ org.onap.policy.clamp policy-clamp-models ${project.version} - - - org.springframework.boot - spring-boot-starter-data-jpa - - org.onap.policy.clamp policy-clamp-examples ${project.version} - - - org.springframework.boot - spring-boot-starter-actuator - - - io.micrometer - micrometer-registry-prometheus - ${version.io.micrometer} - - - org.springframework.boot - spring-boot-starter-aop - diff --git a/pom.xml b/pom.xml index 221f9bb2f..f3ccf47b5 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,6 @@ examples models packages - runtime runtime-acm participant @@ -139,10 +138,18 @@ jackson-annotations + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-aop org.springframework.boot - spring-boot-starter-validation + spring-boot-starter-data-jpa org.springframework.boot @@ -153,6 +160,15 @@ spring-boot-starter-test test + + org.springframework.boot + spring-boot-starter-validation + + + io.micrometer + micrometer-registry-prometheus + ${version.io.micrometer} + io.swagger swagger-models @@ -162,6 +178,11 @@ springfox-boot-starter ${version.springfox} + + io.springfox + springfox-swagger-ui + runtime + org.immutables gson diff --git a/runtime-acm/pom.xml b/runtime-acm/pom.xml index e53f5cbbe..05eaee0ff 100644 --- a/runtime-acm/pom.xml +++ b/runtime-acm/pom.xml @@ -49,68 +49,6 @@ policy-clamp-examples ${project.version} - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-json - - - com.fasterxml.jackson.core - jackson-core - - - com.fasterxml.jackson.core - jackson-databind - - - com.fasterxml.jackson.core - jackson-annotations - - - - - org.springframework.boot - spring-boot-starter-aop - - - org.springframework.boot - spring-boot-starter-security - - - org.springframework.boot - spring-boot-starter-validation - - - io.springfox - springfox-boot-starter - ${version.springfox} - - - org.springframework.boot - spring-boot-starter-actuator - - - io.micrometer - micrometer-registry-prometheus - ${version.io.micrometer} - - - io.springfox - springfox-swagger-ui - runtime - - - org.springframework.boot - spring-boot-starter-test - test - - - com.google.code.gson - gson - -- cgit 1.2.3-korg