[java-idp-plugin-metadatagen] 04/05: Turn on enforcer on distibution and optional enforcer on M2
Rod Widdowson
rdw at steadingsoftware.com
Fri Jan 28 15:50:09 UTC 2022
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-idp-plugin-metadatagen.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-metadatagen.git;a=commit;h=1033a4506ccd360b5ac9b0b706d9064309da3d1d
commit 1033a4506ccd360b5ac9b0b706d9064309da3d1d
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Jan 28 15:49:05 2022 +0000
Turn on enforcer on distibution and optional enforcer on M2
---
metadatagen-dist/pom.xml | 40 ++++++++++++++++++++-
.../src/main/enforcer/shibbolethKeys.gpg | Bin 0 -> 55209 bytes
2 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/metadatagen-dist/pom.xml b/metadatagen-dist/pom.xml
index 4616406..cdabbdc 100644
--- a/metadatagen-dist/pom.xml
+++ b/metadatagen-dist/pom.xml
@@ -17,6 +17,7 @@
<properties>
<checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
<dist.plugin.finalName>idp-plugin-metadatagen-${project.version}</dist.plugin.finalName>
+ <net.shibboleth.maven.enforcer.rules.checkM2>false</net.shibboleth.maven.enforcer.rules.checkM2>
</properties>
<build>
@@ -42,9 +43,46 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>net.shibboleth.maven.enforcer.rules</groupId>
+ <artifactId>maven-dist-enforcer</artifactId>
+ <version>3.1.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>metadatagen-enforce</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <jarEnforcer implementation="net.shibboleth.mvn.enforcer.impl.JarEnforcer">
+ <dataGroupId>net.shibboleth.maven.enforcer.rules</dataGroupId>
+ <dataArtifactId>maven-dist-enforcer-data</dataArtifactId>
+ <dataVersion>1.0.1-SNAPSHOT</dataVersion>
+ <dataKeyRing>${basedir}/src/main/enforcer/shibbolethKeys.gpg</dataKeyRing>
+ <parentPomDir>${basedir}/..</parentPomDir>
+ <zipFiles>${project.build.directory}/${dist.plugin.finalName}.zip</zipFiles>
+ <tgzFiles>${project.build.directory}/${dist.plugin.finalName}.tar.gz</tgzFiles>
+ <checkSignatures>true</checkSignatures>
+ <checkDependencies>true</checkDependencies>
+ <listJarSources>false</listJarSources>
+ <checkM2>${net.shibboleth.maven.enforcer.rules.checkM2}</checkM2>
+ </jarEnforcer>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/metadatagen-dist/src/main/enforcer/shibbolethKeys.gpg b/metadatagen-dist/src/main/enforcer/shibbolethKeys.gpg
new file mode 100644
index 0000000..6669d1e
Binary files /dev/null and b/metadatagen-dist/src/main/enforcer/shibbolethKeys.gpg differ
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list