Upgrade to Spring 5.1.6 + simulator fasterxml 91/90991/4
authorEinat Vinouze <einat.vinouze@intl.att.com>
Sun, 7 Jul 2019 11:15:07 +0000 (14:15 +0300)
committerEinat Vinouze <einat.vinouze@intl.att.com>
Mon, 8 Jul 2019 10:48:31 +0000 (13:48 +0300)
Issue-ID: VID-512
Change-Id: I9a74e6357671c5eee0a425354dcd07c762c69c83
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
epsdk-app-onap/pom.xml
vid-app-common/pom.xml
vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java
vid-automation/pom.xml
vid-ext-services-simulator/pom.xml
vid-webpack-master/pom.xml

index f817f8d..6bb4ffd 100755 (executable)
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <epsdk.version>2.4.0</epsdk.version>
         <jackson.version>2.9.8</jackson.version>
-        <springframework.version>4.3.22.RELEASE</springframework.version>
+        <springframework.version>5.1.6.RELEASE</springframework.version>
+        <!-- epsdk-core is importing this class, which is only on spring-orm 4 but not in orm 5:
+         org.springframework.orm.hibernate4.HibernateTransactionManager
+         so following orm.version lets epsdk-core find it -->
+        <springframework.orm.version>4.3.22.RELEASE</springframework.orm.version>
         <hibernate.version>4.3.11.Final</hibernate.version>
         <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false .. -->
         <skipassembly>true</skipassembly>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-orm</artifactId>
-            <version>${springframework.version}</version>
+            <version>${springframework.orm.version}</version>
         </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
index 6a48190..10fb3da 100755 (executable)
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <epsdk.version>2.4.0</epsdk.version>
-        <springframework.version>4.3.22.RELEASE</springframework.version>
+        <springframework.version>5.1.6.RELEASE</springframework.version>
+        <springframework.orm.version>4.3.22.RELEASE</springframework.orm.version>
+        <!-- epsdk-core is importing this class, which is only on spring-orm 4 but not in orm 5:
+         org.springframework.orm.hibernate4.HibernateTransactionManager
+         so following orm.version lets epsdk-core find it -->
         <hibernate.version>4.3.11.Final</hibernate.version>
         <jackson.version>2.9.8</jackson.version>
         <jersey.version>2.27</jersey.version>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-orm</artifactId>
-            <version>${springframework.version}</version>
+            <version>${springframework.orm.version}</version>
         </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
index 7b78f07..4ef6fbd 100644 (file)
@@ -736,11 +736,7 @@ public class AaiClient implements AaiClientInterface {
     }
 
     private static String encodePathSegment(String segmentToEncode) {
-        try {
-            return UriUtils.encodePathSegment(segmentToEncode, "UTF-8");
-        } catch (UnsupportedEncodingException e) {
-            throw new GenericUncheckedException("URI encoding failed unexpectedly", e);
-        }
+        return UriUtils.encodePathSegment(segmentToEncode, "UTF-8");
     }
 
     @Override
index fb51a4a..64135ce 100644 (file)
@@ -6,7 +6,7 @@
     <artifactId>automationTest</artifactId>
     <version>1.0-SNAPSHOT</version>
     <properties>
-        <springframework.version>4.3.22.RELEASE</springframework.version>
+        <springframework.version>5.1.6.RELEASE</springframework.version>
         <jersey.version>2.27</jersey.version>
         <jackson.version>2.9.7</jackson.version>
         <aspectj.version>1.8.10</aspectj.version>
index 56404f8..59f8868 100644 (file)
@@ -13,8 +13,9 @@
     <properties>
         <encoding>UTF-8</encoding>
         <epsdk.version>1.3.0</epsdk.version>
-        <springframework.version>4.3.22.RELEASE</springframework.version>
+        <springframework.version>5.1.6.RELEASE</springframework.version>
         <hibernate.version>5.3.4.Final</hibernate.version>
+        <jackson.version>2.9.8</jackson.version>
         <!-- Skip assembling the zip by default -->
         <skipassembly>true</skipassembly>
         <!-- Tests usually require some setup that maven cannot do, so skip. -->
             <artifactId>spring-webmvc</artifactId>
             <version>${springframework.version}</version>
         </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-core</artifactId>
+            <version>${jackson.version}</version>
+        </dependency>
         <dependency>
             <groupId>com.fasterxml.jackson.core</groupId>
             <artifactId>jackson-annotations</artifactId>
-            <version>2.8.7</version>
+            <version>${jackson.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+            <version>${jackson.version}</version>
         </dependency>
         <dependency>
             <groupId>javax.xml.bind</groupId>
index 184f3c9..38c0f7f 100644 (file)
@@ -16,7 +16,7 @@
 
   <properties>
     <encoding>UTF-8</encoding>
-    <!--<springframework.version>4.2.0.RELEASE</springframework.version>-->
+    <!--<springframework.version>5.1.6.RELEASE</springframework.version>-->
     <!--<hibernate.version>4.3.11.Final</hibernate.version>-->
     <!--<jackson.version>2.6.3</jackson.version>-->
     <!-- Skip assembling the zip by default -->