<!--
============LICENSE_START=======================================================
Copyright (C) 2018 Ericsson. All rights reserved.
- Modifications Copyright (C) 2018-2019 AT&T. All rights reserved.
+ Modifications Copyright (C) 2018-2020 AT&T. All rights reserved.
Modifications Copyright (C) 2019 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
<parent>
<groupId>org.onap.policy.parent</groupId>
<artifactId>policy-parent</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.1.1-SNAPSHOT</version>
</parent>
<artifactId>integration</artifactId>
<packaging>pom</packaging>
<description>Policy Integration POM</description>
<properties>
- <java.version>1.8</java.version>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <java.version>11</java.version>
<version.logback>1.2.3</version.logback>
<version.dmaap>1.1.9</version.dmaap>
- <version.powermock>1.7.4</version.powermock>
- <version.eclipselink>2.7.0</version.eclipselink>
+ <version.powermock>2.0.4</version.powermock>
+ <version.eclipselink>2.7.5</version.eclipselink>
<version.jackson>2.10.0.pr3</version.jackson>
- <version.drools>7.28.0.Final</version.drools>
+ <version.drools>7.30.0.Final</version.drools>
<version.jersey>2.29.1</version.jersey>
<version.ccsdk>0.4.4</version.ccsdk>
+ <version.swagger>1.6.0</version.swagger>
+ <version.javax.bind>2.3.1</version.javax.bind>
+ <version.javax.json>1.1.4</version.javax.json>
+ <version.json>20190722</version.json>
+ <jacoco.dataFile>${project.basedir}/../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
</properties>
<distributionManagement>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jersey2-jaxrs</artifactId>
- <version>1.5.24</version>
+ <version>${version.swagger}</version>
<exclusions>
<exclusion>
<groupId>org.glassfish.jersey.containers</groupId>
</dependency>
<!-- Mock libraries -->
+ <dependency>
+ <groupId>com.openpojo</groupId>
+ <artifactId>openpojo</artifactId>
+ <version>0.8.10</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
+ <artifactId>powermock-api-mockito2</artifactId>
<version>${version.powermock}</version>
<scope>test</scope>
</dependency>
<scope>test</scope>
</dependency>
<dependency>
- <groupId>com.openpojo</groupId>
- <artifactId>openpojo</artifactId>
- <version>0.8.10</version>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>3.2.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<version>3.8.1</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
- <source>${java.version}</source>
- <target>${java.version}</target>
+ <release>${java.version}</release>
</configuration>
</plugin>
<plugin>
<target>${java.version}</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>pre-unit-test</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <destFile>${jacoco.dataFile}</destFile>
+ <append>true</append>
+ </configuration>
+ </execution>
+ <execution>
+ <id>post-unit-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <dataFile>${jacoco.dataFile}</dataFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>pre-integration-test</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </execution>
+ <execution>
+ <id>post-integration-test</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </execution>
+
+ </executions>
+ </plugin>
</plugins>
</build>