Remove security vulnerabilities in runtime-api
[dcaegen2/platform.git] / mod / runtimeapi / pom.xml
index f9919c5..77d73b9 100644 (file)
@@ -3,6 +3,8 @@
 ============LICENSE_START=======================================================
 Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
 ================================================================================
+Modifications Copyright (c) 2020 Nokia
+================================================================================
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
@@ -32,19 +34,38 @@ limitations under the License.
        </parent>
        <groupId>org.onap.dcaegen2.platform.mod</groupId>
        <artifactId>runtimeapi</artifactId>
-       <version>1.0.1</version>
+       <version>1.2.2</version>
        <name>dcaegen2-platform-mod-runtimeapi</name>
        <description>MOD Runtime API</description>
        <properties>
-               <maven.compiler.source>1.8</maven.compiler.source>
-               <maven.compiler.target>1.8</maven.compiler.target>
-
                <maven.deploy.skip>true</maven.deploy.skip>
-               <java.version>1.8</java.version>
                <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
                <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
                </sonar.coverage.jacoco.xmlReportPaths>
        </properties>
+       <profiles>
+               <profile>
+                       <id>java11</id>
+                       <properties>
+                               <maven.compiler.source>11</maven.compiler.source>
+                               <maven.compiler.target>11</maven.compiler.target>
+                               <maven.compiler.release>11</maven.compiler.release>
+                       </properties>
+                       <activation>
+                       <property>
+                               <name>m2e.version</name>
+                       </property>
+                       <activeByDefault>true</activeByDefault>
+               </activation>
+               </profile>
+               <profile>
+                       <id>java8</id>
+                       <properties>
+                               <maven.compiler.source>1.8</maven.compiler.source>
+                               <maven.compiler.target>1.8</maven.compiler.target>
+                       </properties>
+               </profile>
+       </profiles>
 
        <build>
                <plugins>
@@ -87,6 +108,17 @@ limitations under the License.
                                <version>2.1.7.RELEASE</version>
                                <type>pom</type>
                                <scope>import</scope>
+                               <exclusions>
+                                       <exclusion>
+                                               <groupId>org.springframework.plugin</groupId>
+                                               <artifactId>spring-plugin-core</artifactId>
+                                       </exclusion>
+                               </exclusions>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.springframework.plugin</groupId>
+                               <artifactId>spring-plugin-core</artifactId>
+                               <version>2.0.0.RELEASE</version>
                        </dependency>
                </dependencies>
        </dependencyManagement>