Upgrade son-handler to support Java-11
[dcaegen2/services/son-handler.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 1a909c0..fd9b1c6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
  *  ============LICENSE_START=======================================================
  *  son-handler
  *  ================================================================================
- *   Copyright (C) 2019 Wipro Limited.
+ *   Copyright (C) 2019-2020 Wipro Limited.
  *   ==============================================================================
  *     Licensed under the Apache License, Version 2.0 (the "License");
  *     you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
        <groupId>org.onap.dcaegen2.services.son-handler</groupId>
        <artifactId>son-handler</artifactId>
        <name>dcaegen2-services-son-handler</name>
-       <version>1.1.1-SNAPSHOT</version>
+       <version>2.1.0-SNAPSHOT</version>
 
        <!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId>
                <version>2.0.4.RELEASE</version> </parent -->
@@ -43,8 +43,8 @@
        <properties>
                <sdk.version>1.1.4</sdk.version>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <maven.compiler.source>1.8</maven.compiler.source>
-               <maven.compiler.target>1.8</maven.compiler.target>
+               <maven.compiler.source>11</maven.compiler.source>
+               <maven.compiler.target>11</maven.compiler.target>
                <docker.image.name>onap/org.onap.dcaegen2.services.son-handler</docker.image.name>
                <!-- NEXUS RELATED SETTINGS -->
                <nexusproxy>https://nexus.onap.org</nexusproxy>
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-core</artifactId>
-                       <version>1.10.16</version>
+                       <version>2.21.0</version>
                        <scope>test</scope>
                </dependency>
 
                        <version>4.12</version>
                        <scope>test</scope>
                </dependency>
-               <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
-               <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
-               <dependency>
-                       <groupId>org.powermock</groupId>
-                       <artifactId>powermock-api-mockito</artifactId>
-                       <version>1.6.4</version>
-                       <scope>test</scope>
-               </dependency>
+                <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
+               <dependency>
+                       <groupId>org.powermock</groupId>
+                       <artifactId>powermock-api-mockito2</artifactId>
+                       <version>2.0.2</version>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>org.mockito</groupId>
+                                       <artifactId>mockito-all</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
                <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
                <dependency>
                        <groupId>org.powermock</groupId>
                        <artifactId>powermock-module-junit4</artifactId>
-                       <version>1.6.4</version>
+                       <version>2.0.2</version>
                        <scope>test</scope>
                </dependency>
 
                    <artifactId>bootstrap</artifactId>
                    <version>4.3.1</version>
             </dependency>
-
+            <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
+            <dependency>
+                   <groupId>javax.xml.bind</groupId>
+                   <artifactId>jaxb-api</artifactId>
+                   <version>2.3.0</version>
+            </dependency>
+            <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
+            <dependency>
+                   <groupId>org.javassist</groupId>
+                   <artifactId>javassist</artifactId>
+                   <version>3.24.1-GA</version>
+            </dependency>
        </dependencies>
 
        <build>
                                                 <imageTag>${project.version}</imageTag>
                                                 <imageTag>latest</imageTag>
                                        </imageTags>
-                                       <baseImage>openjdk:8-alpine</baseImage>
+                                       <baseImage>openjdk:11.0.6-jre-slim</baseImage>
                                        <user>sonhms</user>
                                        <resources>
                                                <resource>