Tidy up pom config changes
[aai/search-data-service.git] / search-data-service-app / pom.xml
index 10e84dd..3ba6fe0 100644 (file)
        <parent>
                <artifactId>spring-boot-starter-parent</artifactId>
                <groupId>org.springframework.boot</groupId>
-               <version>1.5.18.RELEASE</version>
+               <version>1.5.20.RELEASE</version>
        </parent>
 
        <groupId>org.onap.aai.search-data-service</groupId>
        <artifactId>search-data-service-app</artifactId>
-       <version>1.4.0-SNAPSHOT</version>
+       <version>1.4.1-SNAPSHOT</version>
        <name>AAI Search Data Service Application</name>
 
        <properties>
@@ -51,6 +51,7 @@
                </sonar.jacoco.reportPath>
                <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
                <sonar.projectVersion>${project.version}</sonar.projectVersion>
+               <jacoco.line.coverage.limit>0.58</jacoco.line.coverage.limit>
        </properties>
 
        <dependencies>
                                        </execution>
                                </executions>
                        </plugin>
-
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-deploy-plugin</artifactId>
-                               <configuration>
-                                       <skip>true</skip>
-                               </configuration>
+                               <version>2.8.2</version>
+                               <executions>
+                                       <execution>
+                                               <id>default-deploy</id>
+                                               <phase>none</phase>
+                                       </execution>
+                               </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                             <!-- <append>true</append> -->
                                                </configuration>
                                        </execution>
+                                       <execution>
+                                               <id>default-check</id>
+                                               <goals>
+                                                       <goal>check</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <dataFile>${project.build.directory}/coverage-reports/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>