diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-02-24 14:01:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-24 14:01:32 +0000 |
commit | 2d4696984968a088a1c664d04bb356cf1c9898d7 (patch) | |
tree | 28467e8cdb508a69c25d3895975c8fea4a8b7a1d /grpc | |
parent | fab6ab37a74f579337424fd6d83b0aaa3ea7a474 (diff) | |
parent | 5678b09ff22352b774914451860b24b2cb9fc770 (diff) |
Merge "SonarCloud migration from SonarQube"
Diffstat (limited to 'grpc')
-rw-r--r-- | grpc/grpc-client/pom.xml | 33 | ||||
-rw-r--r-- | grpc/grpc-server/pom.xml | 33 |
2 files changed, 66 insertions, 0 deletions
diff --git a/grpc/grpc-client/pom.xml b/grpc/grpc-client/pom.xml index 71c1d4b8..8cfc2191 100644 --- a/grpc/grpc-client/pom.xml +++ b/grpc/grpc-client/pom.xml @@ -23,6 +23,16 @@ <artifactId>oclip-grpc-client</artifactId> <name>oclip/grpc/client</name> <packaging>jar</packaging> + <!--Step-1:- SonarCloud migration from SonarQube --> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <sonar.language>java</sonar.language> + <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> + <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> + <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> + <sonar.projectVersion>${project.version}</sonar.projectVersion> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + </properties> <dependencies> <dependency> <groupId>org.onap.cli</groupId> @@ -43,6 +53,29 @@ </dependencies> <build> <plugins> + <!--Step-2:- SonarCloud migration from SonarQube --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> diff --git a/grpc/grpc-server/pom.xml b/grpc/grpc-server/pom.xml index c894e67b..f54a470e 100644 --- a/grpc/grpc-server/pom.xml +++ b/grpc/grpc-server/pom.xml @@ -23,6 +23,16 @@ <artifactId>oclip-grpc-server</artifactId> <name>oclip/grpc/server</name> <packaging>jar</packaging> + <!--Step-1:- SonarCloud migration from SonarQube --> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <sonar.language>java</sonar.language> + <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> + <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> + <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> + <sonar.projectVersion>${project.version}</sonar.projectVersion> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + </properties> <dependencies> <dependency> <groupId>org.onap.cli</groupId> @@ -37,6 +47,29 @@ </dependencies> <build> <plugins> + <!--Step-2:- SonarCloud migration from SonarQube --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> |