You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ga...@apache.org on 2023/03/11 21:43:25 UTC
[xmlgraphics-commons] branch skynavga/configure-jacoco-and-sonar updated: Configure jacoco and sonar plugins
This is an automated email from the ASF dual-hosted git repository.
gadams pushed a commit to branch skynavga/configure-jacoco-and-sonar
in repository https://gitbox.apache.org/repos/asf/xmlgraphics-commons.git
The following commit(s) were added to refs/heads/skynavga/configure-jacoco-and-sonar by this push:
new fe19b93 Configure jacoco and sonar plugins
fe19b93 is described below
commit fe19b9355b44779d3815a9e73fc563cbcc7f83f9
Author: Glenn Adams <gl...@skynav.com>
AuthorDate: Sat Mar 11 15:42:49 2023 -0600
Configure jacoco and sonar plugins
---
.github/workflows/maven.yml | 2 +-
pom.xml | 40 ++++++++++++++++++++++++++++++++++++++--
2 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 1e72f59..7e07f60 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -23,7 +23,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
- run: mvn -B package --file pom.xml
+ run: mvn -B package -Pcoverage --file pom.xml
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
diff --git a/pom.xml b/pom.xml
index 031a9e4..8e01ca4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,11 +13,16 @@
<checkstyle.version>2.15</checkstyle.version>
<exec.version>1.4.0</exec.version>
<findbugs.version>3.0.4</findbugs.version>
+ <jacoco.version>0.8.7</jacoco.version>
<java.version>1.8</java.version>
<junit.version>4.13.2</junit.version>
<project.info.reports.version>2.8</project.info.reports.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<release.version>2.5.2</release.version>
+ <sonar.host.url>https://sonarcloud.io</sonar.host.url>
+ <sonar.organization>apache</sonar.organization>
+ <sonar.projectKey>xmlgraphics-commons</sonar.projectKey>
+ <sonar.projectName>Apache XML Graphics Commons</sonar.projectName>
<surefire.version>2.18.1</surefire.version>
<jdk.path>${env.JAVA_HOME}</jdk.path>
</properties>
@@ -31,8 +36,8 @@
</licenses>
<scm>
- <connection>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/commons/trunk/</connection>
- <url>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/commons/trunk/</url>
+ <connection>scm:git:https://gitbox.apache.org/repos/asf/xmlgraphics-commons.git</connection>
+ <url>scm:git:https://gitbox.apache.org/repos/asf/xmlgraphics-commons.git</url>
<developerConnection></developerConnection>
</scm>
@@ -198,6 +203,37 @@
</pluginManagement>
</build>
</profile>
+ <profile>
+ <id>coverage</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ <executions>
+ <execution>
+ <id>prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>report</id>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ <configuration>
+ <formats>
+ <format>XML</format>
+ </formats>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<reporting>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org