aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.build/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.build/pom.xml')
-rw-r--r--org.jacoco.build/pom.xml203
1 files changed, 168 insertions, 35 deletions
diff --git a/org.jacoco.build/pom.xml b/org.jacoco.build/pom.xml
index 18ac6a5b..32f29695 100644
--- a/org.jacoco.build/pom.xml
+++ b/org.jacoco.build/pom.xml
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
+ Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
+ This program and the accompanying materials are made available under
+ the terms of the Eclipse Public License 2.0 which is available at
+ http://www.eclipse.org/legal/epl-2.0
+
+ SPDX-License-Identifier: EPL-2.0
Contributors:
Evgeny Mandrikov - initial API and implementation
@@ -14,7 +15,7 @@
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.build</artifactId>
- <version>0.8.4</version>
+ <version>0.8.7</version>
<packaging>pom</packaging>
<name>JaCoCo</name>
@@ -26,8 +27,8 @@
</organization>
<licenses>
<license>
- <name>Eclipse Public License v1.0</name>
- <url>http://www.eclipse.org/legal/epl-v10.html</url>
+ <name>Eclipse Public License 2.0</name>
+ <url>https://www.eclipse.org/legal/epl-2.0/</url>
<distribution>repo</distribution>
</license>
</licenses>
@@ -128,7 +129,7 @@
<maven.build.timestamp.format>yyyyMMddhhmm</maven.build.timestamp.format>
<jacoco.home.url>http://www.jacoco.org/jacoco</jacoco.home.url>
- <copyright.years>${project.inceptionYear}, 2019</copyright.years>
+ <copyright.years>${project.inceptionYear}, 2021</copyright.years>
<bytecode.version>1.5</bytecode.version>
<maven.compiler.source>${bytecode.version}</maven.compiler.source>
@@ -138,15 +139,16 @@
<argLine>${jvm.args}</argLine>
<!-- Dependencies versions -->
- <asm.version>7.1</asm.version>
- <ant.version>1.7.1</ant.version>
+ <asm.version>9.1</asm.version>
+ <ant.version>1.9.15</ant.version>
<args4j.version>2.0.28</args4j.version>
- <junit.version>4.8.2</junit.version>
+ <junit.version>4.13.1</junit.version>
+ <googlecodeprettify.version>20100721</googlecodeprettify.version>
<!-- ================== -->
<!-- For SonarQube analysis -->
<!-- ================== -->
- <sonar.jacoco.reportPath>../${project.artifactId}.test/target/jacoco.exec</sonar.jacoco.reportPath>
+ <sonar.coverage.jacoco.xmlReportPaths>../org.jacoco.doc/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<sonar.surefire.reportsPath>../${project.artifactId}.test/target/surefire-reports/</sonar.surefire.reportsPath>
<!-- See http://jira.codehaus.org/browse/SONAR-2096 -->
@@ -242,8 +244,18 @@
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
+ <artifactId>ant-junit4</artifactId>
+ <version>${ant.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-launcher</artifactId>
+ <version>${ant.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
<artifactId>ant-antunit</artifactId>
- <version>1.2</version>
+ <version>1.4</version>
</dependency>
<dependency>
<groupId>args4j</groupId>
@@ -267,6 +279,7 @@
<exclude>**/*.java</exclude>
<exclude>**/*.kt</exclude>
<exclude>**/*.groovy</exclude>
+ <exclude>**/*.scala</exclude>
<exclude>**/*.properties</exclude>
</excludes>
</resource>
@@ -276,6 +289,16 @@
<includes>
<include>**/*.properties</include>
</includes>
+ <excludes>
+ <exclude>**/*-test.properties</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*-test.properties</include>
+ </includes>
</resource>
<resource>
<directory>.</directory>
@@ -376,7 +399,7 @@
<version>2.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
- <mavenExecutorId>forked-path</mavenExecutorId>
+ <mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<!--
Allows to activate release profile during release.
@@ -461,6 +484,11 @@
<artifactId>maven-bundle-plugin</artifactId>
<version>3.5.1</version>
</plugin>
+ <plugin>
+ <groupId>com.diffplug.spotless</groupId>
+ <artifactId>spotless-maven-plugin</artifactId>
+ <version>1.24.3</version>
+ </plugin>
</plugins>
</pluginManagement>
@@ -476,21 +504,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <configuration>
- <!-- We can't use delimiters "${*}" and "$*$" together - probably it's bug in plugin -->
- <!-- so for now we will define only our delimiters in compliance with https://sourceforge.net/apps/trac/eclemma/changeset/1229 -->
- <!-- but it would be better to use defaults -->
- <useDefaultDelimiters>false</useDefaultDelimiters>
- <delimiters>
- <delimiter>@*@</delimiter>
- <delimiter>$*$</delimiter>
- </delimiters>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<filters>
@@ -556,6 +569,52 @@
</plugin>
<plugin>
+ <groupId>com.diffplug.spotless</groupId>
+ <artifactId>spotless-maven-plugin</artifactId>
+ <configuration>
+ <java>
+ <lineEndings>UNIX</lineEndings>
+ <includes>
+ <include>src/**/*.java</include>
+ </includes>
+ <eclipse>
+ <version>4.12.0</version>
+ <file>../org.jacoco.core/.settings/org.eclipse.jdt.core.prefs</file>
+ </eclipse>
+ <trimTrailingWhitespace/>
+ <endWithNewline/>
+ </java>
+ <formats>
+ <format>
+ <includes>
+ <include>**/*.properties</include>
+ <include>**/*.html</include>
+ <include>**/*.css</include>
+ <include>**/*.js</include>
+ <include>**/*.xml</include>
+ <include>**/*.xsl</include>
+ <include>**/*.dtd</include>
+ </includes>
+ <excludes>
+ <exclude>target/**</exclude>
+ </excludes>
+ <lineEndings>UNIX</lineEndings>
+ <trimTrailingWhitespace/>
+ <endWithNewline/>
+ </format>
+ </formats>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
@@ -570,13 +629,14 @@
<fileset dir="${basedir}" includes="**/*.java,**/*.xml,**/*.bsh" excludes="target/**,.idea/**,nb-configuration.xml" id="missinglicense.fileset">
<include name="**/*.kt"/>
<include name="**/*.groovy"/>
+ <include name="**/*.scala"/>
<not>
<and>
- <contains text="Copyright (c) 2009, 2019 Mountainminds GmbH &amp; Co. KG and Contributors"/>
- <contains text="All rights reserved. This program and the accompanying materials"/>
- <contains text="are made available under the terms of the Eclipse Public License v1.0"/>
- <contains text="which accompanies this distribution, and is available at"/>
- <contains text="http://www.eclipse.org/legal/epl-v10.html"/>
+ <contains text="Copyright (c) 2009, 2021 Mountainminds GmbH &amp; Co. KG and Contributors"/>
+ <contains text="This program and the accompanying materials are made available under"/>
+ <contains text="the terms of the Eclipse Public License 2.0 which is available at"/>
+ <contains text="http://www.eclipse.org/legal/epl-2.0"/>
+ <contains text="SPDX-License-Identifier: EPL-2.0"/>
</and>
</not>
</fileset>
@@ -658,6 +718,16 @@
buildNumber = project.getProperties().get("buildNumber");
pkgName = buildNumber.substring(buildNumber.length() - 7, buildNumber.length());
project.getProperties().setProperty("jacoco.runtime.package.name", "org.jacoco.agent.rt.internal_" + pkgName);
+
+ void loadLicense(String libraryId) {
+ version = project.getProperties().get(libraryId + ".version");
+ path = project.getBasedir().toPath().resolve("../org.jacoco.build/licenses/" + libraryId + "-" + version + ".html");
+ license = new String(java.nio.file.Files.readAllBytes(path), "UTF-8");
+ project.getProperties().setProperty(libraryId + ".license", license);
+ }
+ loadLicense("args4j");
+ loadLicense("asm");
+ loadLicense("googlecodeprettify");
]]>
</script>
</configuration>
@@ -746,6 +816,69 @@
</build>
</profile>
+ <!--
+ Following profiles enable compilation into bytecode version 13
+ when requested "bytecode.version" greater than 13,
+ because this is maximum that can be processed by
+ maven-shade-plugin and maven-plugin-plugin.
+ This is overridden for tests.
+ -->
+ <profile>
+ <id>java14-bytecode</id>
+ <activation>
+ <property>
+ <name>bytecode.version</name>
+ <value>14</value>
+ </property>
+ </activation>
+ <properties>
+ <maven.compiler.source>13</maven.compiler.source>
+ <maven.compiler.target>13</maven.compiler.target>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>java15-bytecode</id>
+ <activation>
+ <property>
+ <name>bytecode.version</name>
+ <value>15</value>
+ </property>
+ </activation>
+ <properties>
+ <maven.compiler.source>13</maven.compiler.source>
+ <maven.compiler.target>13</maven.compiler.target>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>java16-bytecode</id>
+ <activation>
+ <property>
+ <name>bytecode.version</name>
+ <value>16</value>
+ </property>
+ </activation>
+ <properties>
+ <maven.compiler.source>13</maven.compiler.source>
+ <maven.compiler.target>13</maven.compiler.target>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>java17-bytecode</id>
+ <activation>
+ <property>
+ <name>bytecode.version</name>
+ <value>17</value>
+ </property>
+ </activation>
+ <properties>
+ <maven.compiler.source>13</maven.compiler.source>
+ <maven.compiler.target>13</maven.compiler.target>
+ </properties>
+ </profile>
+
<!-- This profile enables use of ECJ -->
<profile>
<id>ecj</id>