From 1e77afdda9c9e89a313dec034c51f6cd0e407814 Mon Sep 17 00:00:00 2001 From: Piotr Jaszczyk Date: Wed, 13 Jun 2018 09:56:17 +0200 Subject: Check license notes during build I wanted to use oparent as parent pom but unfortunately jacoco plugin is configured differently there. Currently oparent provides support for jacoco (static code analysis), checkstyle (licenses + code style) and swagger api documentation. In ves-hv: * jacoco is preconfigured for kotlin (but currently not very usable as it's not ready for kotlin-generated code ie. displayed coverage is well under the actual coverage; there is an ongoing effort in jacoco and kotlin communities to fix that). * checkstyle - this task adds support for checking licenses using oparent:checkstyle artifact. Static code analysis is already done using Detekt. * swagger - ves-hv is not exposing REST API so there is no need for this. Closes ONAP-364 Change-Id: If2727a97d826dcab473b2e1e80171d8124ae52d4 Signed-off-by: Piotr Jaszczyk Issue-ID: DCAEGEN2-601 --- pom.xml | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 69 insertions(+), 11 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index d2c58865..af61407b 100644 --- a/pom.xml +++ b/pom.xml @@ -37,17 +37,17 @@ VES HighVolume Collector pom - - hv-collector-analysis - hv-collector-client-simulator - hv-collector-core - hv-collector-coverage - hv-collector-ct - hv-collector-dcae-app-simulator - hv-collector-domain - hv-collector-main - hv-collector-utils - + + hv-collector-analysis + hv-collector-client-simulator + hv-collector-core + hv-collector-coverage + hv-collector-ct + hv-collector-dcae-app-simulator + hv-collector-domain + hv-collector-main + hv-collector-utils + 1.2.41 @@ -330,6 +330,36 @@ + + + maven-checkstyle-plugin + 3.0.0 + + + org.onap.oparent + checkstyle + 1.1.1 + + + + + onap-license + + check + + process-sources + + onap-checkstyle/check-license.xml + false + true + false + **\/*.kt + true + + + + + @@ -406,6 +436,19 @@ + + 40_openecomp-release + 40_openecomp-release + https://nexus.onap.org/content/repositories/releases/ + + true + daily + + + false + + + arturbosch-code-analysis arturbosch-code-analysis (for detekt) @@ -422,6 +465,21 @@ + + + 40_openecomp-release + 40_openecomp-release + https://nexus.onap.org/content/repositories/releases/ + + true + daily + + + false + + + + -- cgit 1.2.3-korg