summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sparkybe-onap-service/pom.xml')
-rw-r--r--sparkybe-onap-service/pom.xml87
1 files changed, 72 insertions, 15 deletions
diff --git a/sparkybe-onap-service/pom.xml b/sparkybe-onap-service/pom.xml
index 842af2d..f3dd245 100644
--- a/sparkybe-onap-service/pom.xml
+++ b/sparkybe-onap-service/pom.xml
@@ -14,6 +14,7 @@
<properties>
<java.version>1.8</java.version>
+ <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
<frontEndGroupdId>org.onap.aai</frontEndGroupdId>
<frontEndArtifactId>sparky-fe</frontEndArtifactId>
<frontEndVersion>1.3.0</frontEndVersion>
@@ -21,24 +22,16 @@
<sslport>8000</sslport>
<nexusproxy>https://nexus.onap.org</nexusproxy>
<camel-spring-boot.version>2.21.1</camel-spring-boot.version>
- <config-home>${basedir}/</config-home>
+ <config-home>${basedir}/</config-home>
<version.aai.aai-schema-ingest>1.4.1</version.aai.aai-schema-ingest>
<version.aai-schema>1.6.0</version.aai-schema>
<sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
<onap.nexus.url>https://neexus.onap.org</onap.nexus.url>
<jacoco.line.coverage.limit>0.55</jacoco.line.coverage.limit>
- <spring.boot.version>1.5.22.RELEASE</spring.boot.version>
</properties>
<dependencyManagement>
<dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>${spring.boot.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
<!-- Camel BOM -->
<dependency>
<groupId>org.apache.camel</groupId>
@@ -250,7 +243,17 @@ some of the depedencies should probably have a scope of provided so they don't a
</exclusion>
</exclusions>
</dependency>
-
+ <dependency>
+ <groupId>com.att.eelf</groupId>
+ <artifactId>eelf-core</artifactId>
+ <exclusions> <!--excluding transitive dependency coming from this artifact, as we would need powermock-api-mockito2-->
+ <exclusion>
+ <groupId>org.powermock</groupId>
+ <artifactId>powermock-api-mockito</artifactId>
+ </exclusion>
+ </exclusions>
+ <version>1.0.1-oss</version>
+ </dependency>
<dependency>
<groupId>org.onap.aai</groupId>
<artifactId>rest-client</artifactId>
@@ -281,6 +284,7 @@ some of the depedencies should probably have a scope of provided so they don't a
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
+ <version>20140107</version>
<scope>provided</scope>
</dependency>
@@ -330,9 +334,8 @@ some of the depedencies should probably have a scope of provided so they don't a
</dependency>
<dependency>
<groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
- <version>1.6.2</version>
- <scope>test</scope>
+ <artifactId>powermock-api-mockito2</artifactId>
+ <version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
@@ -342,6 +345,12 @@ some of the depedencies should probably have a scope of provided so they don't a
</dependency>
<dependency>
<groupId>org.powermock</groupId>
+ <artifactId>powermock-core</artifactId>
+ <version>2.0.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4-rule-agent</artifactId>
<version>1.6.2</version>
<scope>test</scope>
@@ -351,13 +360,19 @@ some of the depedencies should probably have a scope of provided so they don't a
<artifactId>javax.inject</artifactId>
<version>1</version>
<scope>test</scope>
- </dependency>
+ </dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-core</artifactId>
+ <version>1.3</version>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
@@ -476,6 +491,48 @@ some of the depedencies should probably have a scope of provided so they don't a
</executions>
</plugin>
-->
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${version.jacoco.maven.plugin}</version>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <phase>package</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-check</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <dataFile>${project.build.directory}/jacoco.exec</dataFile>
+ <rules>
+ <!-- implementation is needed only for Maven 2 -->
+ <rule implementation="org.jacoco.maven.RuleConfiguration">
+ <element>BUNDLE</element>
+ <limits>
+ <limit implementation="org.jacoco.report.check.Limit">
+ <counter>LINE</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>${jacoco.line.coverage.limit}</minimum>
+ </limit>
+ </limits>
+ </rule>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<!-- <plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -583,7 +640,7 @@ some of the depedencies should probably have a scope of provided so they don't a
</plugins>
</build>
-
+
<distributionManagement>
<repository>
<id>ecomp-releases</id>