PROTON-2598 Update build configuration for enforcer and checksums
Update build to reflect changes in the Apache parent enforcer and
checksum plugin configurations and versions.
diff --git a/apache-qpid-protonj2/pom.xml b/apache-qpid-protonj2/pom.xml
index d3ea8b0..47fce32 100644
--- a/apache-qpid-protonj2/pom.xml
+++ b/apache-qpid-protonj2/pom.xml
@@ -95,19 +95,16 @@
<execution>
<id>source-release-checksum</id>
<goals>
- <goal>files</goal>
+ <goal>artifacts</goal>
</goals>
<configuration>
- <fileSets>
- <fileSet>
- <directory>${project.build.directory}</directory>
- <includes>
- <include>apache-qpid-protonj2-${project.version}-src.tar.gz</include>
- <include>apache-qpid-protonj2-${project.version}-bin.tar.gz</include>
- </includes>
- </fileSet>
- </fileSets>
- <failIfNoFiles>true</failIfNoFiles>
+ <algorithms>
+ <algorithm>SHA-512</algorithm>
+ </algorithms>
+ <includeClassifiers>src,bin</includeClassifiers>
+ <excludeMainArtifact>true</excludeMainArtifact>
+ <csvSummary>false</csvSummary>
+ <attachChecksums>true</attachChecksums>
</configuration>
</execution>
</executions>
diff --git a/pom.xml b/pom.xml
index 21989f5..ca8d34c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,9 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
+ <minimalMavenBuildVersion>3.5.0</minimalMavenBuildVersion>
+ <minimalJavaBuildVersion>11</minimalJavaBuildVersion>
+
<!-- Test dependency versions -->
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<junit.vintage.version>5.9.0</junit.vintage.version>
@@ -49,8 +52,7 @@
<!-- Plugin versions -->
<maven.bundle.plugin.version>5.1.1</maven.bundle.plugin.version>
- <jacoco.plugin.version>0.8.7</jacoco.plugin.version>
- <maven.enforcer.plugin.version>3.0.0-M3</maven.enforcer.plugin.version>
+ <jacoco.plugin.version>0.8.8</jacoco.plugin.version>
<!-- Test properties -->
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
@@ -307,26 +309,6 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>${maven.enforcer.plugin.version}</version>
- <executions>
- <execution>
- <id>enforce-java-version</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <version>[11,)</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>