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 22:13:19 UTC

[xmlgraphics-commons] branch main updated: Configure jacoco and sonar plugins (#23)

This is an automated email from the ASF dual-hosted git repository.

gadams pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/xmlgraphics-commons.git


The following commit(s) were added to refs/heads/main by this push:
     new 8e9b578  Configure jacoco and sonar plugins (#23)
8e9b578 is described below

commit 8e9b578194f2b1232697ee0218f22b07743bbefd
Author: Glenn Adams <gl...@skynav.com>
AuthorDate: Sat Mar 11 16:13:14 2023 -0600

    Configure jacoco and sonar plugins (#23)
---
 .asf.yaml |  2 +-
 pom.xml   | 40 ++++++++++++++++++++++++++++++++++++++--
 2 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index df07405..3e77fb0 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -11,7 +11,7 @@ github:
   protected_branches:
     main:
       strict: true
-      required_linear_history: false
+      required_linear_history: true
       required_signatures: true
   dependabot_alerts:  true
   dependabot_updates: false
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