Skip to content

Commit

Permalink
fix: sonar coverage for non-standard directory structure (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
burkedavison authored Dec 5, 2022
1 parent 6cc7e9d commit 60dc190
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gapic-generator-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Should be in sync with repositories.bzl -->
<googleapis.commit>44d6bef0ca6db8bba3fb324c8186e694bcc4829c</googleapis.commit>
<sonar.projectBaseDir>..</sonar.projectBaseDir>
<sonar.sources>../src/main/java,pom.xml</sonar.sources>
<sonar.working.directory>../target/sonar</sonar.working.directory>
</properties>

<dependencyManagement>
Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<module>gapic-generator-java</module>
</modules>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>
${project.basedir}/target/site/jacoco/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
<sonar.sources>pom.xml</sonar.sources>
<sonar.tests/>
</properties>

<!-- Do not deploy the aggregator POM -->
<build>
<plugins>
Expand Down

0 comments on commit 60dc190

Please sign in to comment.