From 4ce2484b60c39510b59af64706f76da926600b36 Mon Sep 17 00:00:00 2001 From: "Lee, Tian (tl5884)" Date: Thu, 3 Oct 2019 15:05:40 +0100 Subject: Enforce minimum Jacoco line coverage Current coverage at 85%, enforced limit set to 80% Change-Id: I1875fc786f82e4bae352746c1600f28d8b1bb2ee Issue-ID: AAI-2365 Signed-off-by: Lee, Tian (tl5884) --- pom.xml | 862 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 437 insertions(+), 425 deletions(-) diff --git a/pom.xml b/pom.xml index fb68371..09d4fe5 100644 --- a/pom.xml +++ b/pom.xml @@ -22,446 +22,458 @@ --> - 4.0.0 - - org.onap.aai.validation - validation - aai-validation - 1.6.0-SNAPSHOT - - org.onap.oparent - oparent - 2.0.0 - - - - - - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - - - - - 1.5.21.RELEASE - org.onap.aai.validation.ValidationServiceApplication - 9500 - 9501 - 1.2.2 - 1.4.0 - 1.4.0 - 1.0 - 2.7 - 2.2.0 - 1.10 - 1.1.6 - 4.5.2 - 2.4.3-01 - 2.9.2-01 - 2.6.2 - 1.3 - 20160212 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + org.onap.aai.validation + validation + aai-validation + 1.6.0-SNAPSHOT + + org.onap.oparent + oparent + 2.0.0 + + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + + + 1.5.21.RELEASE + org.onap.aai.validation.ValidationServiceApplication + 9500 + 9501 + 1.2.2 + 1.4.0 + 1.4.0 + 1.0 + 2.7 + 2.2.0 + 1.10 + 1.1.6 + 4.5.2 + 2.4.3-01 + 2.9.2-01 + 2.6.2 + 1.3 + 20160212 1.5.1 1.4.1 ${project.build.directory}/bundleconfig/etc/oxm/ 2.23 - ${basedir}/target - - - - - org.springframework.boot - spring-boot-starter-web - - - logback-classic - ch.qos.logback - - - org.springframework.boot - spring-boot-starter-tomcat - - - - - org.springframework.boot - spring-boot-starter-jetty - - - org.springframework - spring-webmvc - - - org.codehaus.groovy - groovy-all - - - javax.ws.rs - javax.ws.rs-api - 2.0.1 - - - commons-io - commons-io - 2.4 - - - org.apache.commons - commons-lang3 - 3.7 - - - commons-collections - commons-collections - - - org.dom4j - dom4j - 2.1.1 - - - org.eclipse.jetty - jetty-security - + ${basedir}/target + + ${project.build.directory}/code-coverage + 0.80 + + + + + org.springframework.boot + spring-boot-starter-web + + + logback-classic + ch.qos.logback + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework + spring-webmvc + + + org.codehaus.groovy + groovy-all + + + javax.ws.rs + javax.ws.rs-api + 2.0.1 + + + commons-io + commons-io + 2.4 + + + org.apache.commons + commons-lang3 + 3.7 + + + commons-collections + commons-collections + + + org.dom4j + dom4j + 2.1.1 + + + org.eclipse.jetty + jetty-security + - - ch.qos.logback - logback-classic - - - - org.onap.aai.logging-service - logging-api - ${version.org.onap.aai.logging-service} - - - - org.onap.aai.logging-service - common-logging - ${version.org.onap.aai.logging-service} - - - - org.onap.aai.logging-service - eelf-logging - ${version.org.onap.aai.logging-service} - - - - com.att.eelf - eelf-core - 1.0.1-oss - - - - org.onap.aai - rest-client - ${version.aai.rest.client} - - - - org.onap.aai.event-client - event-client-dmaap - ${version.org.onap.aai.event.client} - - - - com.google.code.gson - gson - - - - com.jayway.jsonpath - json-path - - - - commons-configuration - commons-configuration - ${version.commons-configuration} - - - - jaxen - jaxen - - - - org.apache.httpcomponents - httpclient - - - - org.eclipse.persistence - org.eclipse.persistence.moxy - ${version.org.eclipse.persistence.moxy} - - - - org.json - json - ${version.org.json.json} - - - - org.glassfish.jersey.core - jersey-client - - - - org.onap.aai.aai-common - aai-schema-ingest - ${version.aai.aai-schema-ingest} - - - org.springframework.boot - spring-boot-starter-tomcat - - - - - junit - junit - test - - - - org.hamcrest - hamcrest-library - test - - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - ${project.artifactId} - - - org.apache.maven.plugins - maven-deploy-plugin - - - org.springframework.boot - spring-boot-maven-plugin - ${spring-boot.version} - - ${start-class} - true - - - - - repackage - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - groovy-eclipse-compiler - true - 1.8 - 1.8 - - - - org.codehaus.groovy - groovy-eclipse-compiler - ${version.org.codehaus.groovy.groovy-eclipse-compiler} - - - org.codehaus.groovy - groovy-eclipse-batch - ${version.org.codehaus.groovy.groovy-eclipse-batch} - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack + + ch.qos.logback + logback-classic + + + + org.onap.aai.logging-service + logging-api + ${version.org.onap.aai.logging-service} + + + + org.onap.aai.logging-service + common-logging + ${version.org.onap.aai.logging-service} + + + + org.onap.aai.logging-service + eelf-logging + ${version.org.onap.aai.logging-service} + + + + com.att.eelf + eelf-core + 1.0.1-oss + + + + org.onap.aai + rest-client + ${version.aai.rest.client} + + + + org.onap.aai.event-client + event-client-dmaap + ${version.org.onap.aai.event.client} + + + + com.google.code.gson + gson + + + + com.jayway.jsonpath + json-path + + + + commons-configuration + commons-configuration + ${version.commons-configuration} + + + + jaxen + jaxen + + + + org.apache.httpcomponents + httpclient + + + + org.eclipse.persistence + org.eclipse.persistence.moxy + ${version.org.eclipse.persistence.moxy} + + + + org.json + json + ${version.org.json.json} + + + + org.glassfish.jersey.core + jersey-client + + + + org.onap.aai.aai-common + aai-schema-ingest + ${version.aai.aai-schema-ingest} + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + junit + junit + test + + + + org.hamcrest + hamcrest-library + test + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + ${project.artifactId} + + + org.apache.maven.plugins + maven-deploy-plugin + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot.version} + + ${start-class} + true + + + + + repackage + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + groovy-eclipse-compiler + true + 1.8 + 1.8 + + + + org.codehaus.groovy + groovy-eclipse-compiler + ${version.org.codehaus.groovy.groovy-eclipse-compiler} + + + org.codehaus.groovy + groovy-eclipse-batch + ${version.org.codehaus.groovy.groovy-eclipse-batch} + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack initialize - unpack - - - - - org.onap.aai.schema-service - aai-schema + unpack + + + + + org.onap.aai.schema-service + aai-schema ${version.aai.aai-schema} jar onap/oxm/**/ - ${aai.oxm.target.folder} + ${aai.oxm.target.folder} - - - - - - - com.mycila - license-maven-plugin - 3.0 - -
License.txt
- - src/main/java/** - src/test/java/** - pom.xml - - true -
- - - + + + + +
+ + com.mycila + license-maven-plugin + 3.0 + +
License.txt
+ + src/main/java/** + src/test/java/** + pom.xml + + true +
+ + + - check - - validate - - -
- - org.apache.maven.plugins - maven-surefire-plugin - + check + + validate +
+
+
+ + org.apache.maven.plugins + maven-surefire-plugin + - ${skip.unit.tests} + ${skip.unit.tests} - - **/IT*.java - - - . - - - - - - org.apache.maven.plugins - maven-resources-plugin - 3.0.2 - - - copy-docker-file - package - - copy-resources - - - ${project.build.directory} - true - - - ${basedir}/src/main/docker - true - - **/* - - - - ${basedir}/src/main/bin/ - true - - **/* - - - - - - - copy-bundleconfig - package - - copy-resources - - - ${project.build.directory}/bundleconfig - false - - - ${basedir}/bundleconfig/ - true - - etc/appprops/ - etc/rules/ - - - - - - - - - com.spotify - docker-maven-plugin - 0.4.11 - - true - docker-hub - ${docker.push.registry}/onap/${project.artifactId} - ${docker.location} - - latest - - true - - - - org.jacoco - jacoco-maven-plugin - - - prepare-agent - - prepare-agent - - - - report - package - - report - - - - -
-
- - - - dev - - true - - - dev + + **/IT*.java + + + . + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.0.2 + + + copy-docker-file + package + + copy-resources + + + ${project.build.directory} + true + + + ${basedir}/src/main/docker + true + + **/* + + + + ${basedir}/src/main/bin/ + true + + **/* + + + + + + + copy-bundleconfig + package + + copy-resources + + + ${project.build.directory}/bundleconfig + false + + + ${basedir}/bundleconfig/ + true + + etc/appprops/ + etc/rules/ + + + + + + + + + com.spotify + docker-maven-plugin + 0.4.11 + + true + docker-hub + ${docker.push.registry}/onap/${project.artifactId} + ${docker.location} + + latest + + true + + + + org.jacoco + jacoco-maven-plugin + + + default-check + + check + + + ${jacoco.report.directory}/jacoco-ut.exec + + + + BUNDLE + + + LINE + COVEREDRATIO + ${jacoco.line.coverage.limit} + + + + + + + + + + + + + + dev + + true + + + dev - true - false - - - + true + false + + +
-- cgit 1.2.3-korg