aboutsummaryrefslogtreecommitdiffstats
path: root/intentanalysis/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'intentanalysis/pom.xml')
-rw-r--r--intentanalysis/pom.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/intentanalysis/pom.xml b/intentanalysis/pom.xml
index 2aea179..dea8b5d 100644
--- a/intentanalysis/pom.xml
+++ b/intentanalysis/pom.xml
@@ -41,6 +41,8 @@
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<junit.vintage.version>5.9.0-RC1</junit.vintage.version>
<junit.platform.version>1.9.0-RC1</junit.platform.version>
+ <version.maven-checkstyle-plugin>3.3.1</version.maven-checkstyle-plugin>
+ <version.parent.checkstyle>[4.1.2,)</version.parent.checkstyle>
</properties>
<dependencyManagement>
@@ -221,6 +223,62 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>${version.maven-checkstyle-plugin}</version>
+ <executions>
+ <execution>
+ <id>onap-license</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <configLocation>onap-checkstyle/check-license.xml</configLocation>
+ <includeResources>false</includeResources>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <includeTestResources>false</includeTestResources>
+ <sourceDirectories>
+ <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
+ </sourceDirectories>
+ <consoleOutput>true</consoleOutput>
+ <failOnViolation>false</failOnViolation>
+ <violationSeverity>warning</violationSeverity>
+ </configuration>
+ </execution>
+ <execution>
+ <id>onap-java-style</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <!-- Use Google Java Style Guide:
+ https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
+ with minor changes -->
+ <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
+ <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
+ sources directory -->
+ <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
+ <includeResources>true</includeResources>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <includeTestResources>true</includeTestResources>
+ <consoleOutput>true</consoleOutput>
+ <failOnViolation>false</failOnViolation>
+ <violationSeverity>warning</violationSeverity>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.usecase-ui.intent-analysis</groupId>
+ <artifactId>checkstyle</artifactId>
+ <version>14.0.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.0.11</version>