Updating models dependencies to latest versions 22/109522/1
authorRossC <ross.carter@est.tech>
Wed, 24 Jun 2020 09:49:26 +0000 (10:49 +0100)
committerRossC <ross.carter@est.tech>
Wed, 24 Jun 2020 15:23:19 +0000 (16:23 +0100)
Issue-ID: POLICY-2387
Change-Id: Id89dac64139490f6d9b83b295cfe99c43ed657cf
Signed-off-by: RossC <ross.carter@est.tech>
models-base/pom.xml
models-interactions/model-actors/actor.appclcm/pom.xml
models-interactions/model-impl/aai/pom.xml
models-interactions/model-yaml/pom.xml
models-interactions/model-yaml/src/main/java/org/onap/policy/controlloop/compiler/ControlLoopCompiler.java
pom.xml

index 0f2990d..57cf917 100644 (file)
@@ -40,7 +40,6 @@
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>
-            <version>3.9</version>
         </dependency>
     </dependencies>
 </project>
index de91da4..63bc088 100644 (file)
@@ -74,7 +74,6 @@
     <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-lang3</artifactId>
-        <version>3.8.1</version>
     </dependency>
     <dependency>
      <groupId>org.onap.policy.models.policy-models-interactions.model-actors</groupId>
index 79537a5..a08bbfd 100644 (file)
@@ -72,7 +72,7 @@
         <dependency>
             <groupId>org.onap.aai.schema-service</groupId>
             <artifactId>aai-schema</artifactId>
-            <version>1.0.3</version>
+            <version>1.7.2</version>
         </dependency>
     </dependencies>
 </project>
index 56df41f..fb80eaf 100644 (file)
@@ -52,7 +52,7 @@
         <dependency>
             <groupId>org.jgrapht</groupId>
             <artifactId>jgrapht-core</artifactId>
-            <version>0.9.2</version>
+            <version>1.2.0</version>
         </dependency>
         <dependency>
             <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
index 0bfc906..5204a1b 100644 (file)
@@ -27,7 +27,7 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import org.apache.commons.lang3.StringUtils;
-import org.jgrapht.DirectedGraph;
+import org.jgrapht.Graph;
 import org.jgrapht.graph.ClassBasedEdgeFactory;
 import org.jgrapht.graph.DefaultEdge;
 import org.jgrapht.graph.DirectedMultigraph;
@@ -115,7 +115,7 @@ public class ControlLoopCompiler implements Serializable {
             //
             // For this version we can use a directed multigraph, in the future we may not be able to
             //
-            DirectedGraph<NodeWrapper, LabeledEdge> graph =
+            Graph<NodeWrapper, LabeledEdge> graph =
                             new DirectedMultigraph<>(new ClassBasedEdgeFactory<NodeWrapper,
                                             LabeledEdge>(LabeledEdge.class));
             //
@@ -226,7 +226,7 @@ public class ControlLoopCompiler implements Serializable {
     }
 
     private static Map<Policy, PolicyNodeWrapper> addPoliciesAsNodes(ControlLoopPolicy policy,
-            DirectedGraph<NodeWrapper, LabeledEdge> graph, TriggerNodeWrapper triggerNode,
+        Graph<NodeWrapper, LabeledEdge> graph, TriggerNodeWrapper triggerNode,
             ControlLoopCompilerCallback callback) {
         Map<Policy, PolicyNodeWrapper> mapNodes = new HashMap<>();
         for (Policy operPolicy : policy.getPolicies()) {
@@ -259,7 +259,7 @@ public class ControlLoopCompiler implements Serializable {
         return mapNodes;
     }
 
-    private static void addEdge(DirectedGraph<NodeWrapper, LabeledEdge> graph, Map<Policy, PolicyNodeWrapper> mapNodes,
+    private static void addEdge(Graph<NodeWrapper, LabeledEdge> graph, Map<Policy, PolicyNodeWrapper> mapNodes,
                     String policyId, String connectedPolicy,
                     FinalResultNodeWrapper finalResultNodeWrapper,
                     PolicyResult policyResult, NodeWrapper node) throws CompilerException {
@@ -278,7 +278,7 @@ public class ControlLoopCompiler implements Serializable {
         }
     }
 
-    private static void validateNodesAndEdges(DirectedGraph<NodeWrapper, LabeledEdge> graph,
+    private static void validateNodesAndEdges(Graph<NodeWrapper, LabeledEdge> graph,
                     ControlLoopCompilerCallback callback) throws CompilerException {
         for (NodeWrapper node : graph.vertexSet()) {
             if (node instanceof TriggerNodeWrapper) {
@@ -294,7 +294,7 @@ public class ControlLoopCompiler implements Serializable {
         }
     }
 
-    private static void validateTriggerNodeWrapper(DirectedGraph<NodeWrapper, LabeledEdge> graph,
+    private static void validateTriggerNodeWrapper(Graph<NodeWrapper, LabeledEdge> graph,
                     NodeWrapper node) throws CompilerException {
         if (LOGGER.isDebugEnabled()) {
             LOGGER.info("Trigger Node {}", node);
@@ -313,7 +313,7 @@ public class ControlLoopCompiler implements Serializable {
         }
     }
 
-    private static void validateFinalResultNodeWrapper(DirectedGraph<NodeWrapper, LabeledEdge> graph,
+    private static void validateFinalResultNodeWrapper(Graph<NodeWrapper, LabeledEdge> graph,
                     NodeWrapper node) throws CompilerException {
         if (LOGGER.isDebugEnabled()) {
             LOGGER.info("FinalResult Node {}", node);
@@ -326,7 +326,7 @@ public class ControlLoopCompiler implements Serializable {
         }
     }
 
-    private static void validatePolicyNodeWrapper(DirectedGraph<NodeWrapper, LabeledEdge> graph,
+    private static void validatePolicyNodeWrapper(Graph<NodeWrapper, LabeledEdge> graph,
                     NodeWrapper node, ControlLoopCompilerCallback callback) throws CompilerException {
         if (LOGGER.isDebugEnabled()) {
             LOGGER.info("Policy Node {}", node);
diff --git a/pom.xml b/pom.xml
index d46aff3..e6332db 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <dependency>
             <groupId>org.eclipse.jetty</groupId>
             <artifactId>jetty-security</artifactId>
-            <version>9.4.25.v20191220</version>
+            <version>9.4.30.v20200611</version>
         </dependency>
         <dependency>
             <groupId>org.eclipse.jetty</groupId>
         <dependency>
             <groupId>commons-io</groupId>
             <artifactId>commons-io</artifactId>
-            <version>2.6</version>
         </dependency>
         <dependency>
             <groupId>org.apache.commons</groupId>