[java-mvn-enforcer] branch main updated: JMVN-18 Test on No distribution to check is too restrictive

Rod Widdowson rdw at steadingsoftware.com
Sat Jan 15 16:03:46 UTC 2022


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-mvn-enforcer.

View the commit online:
http://git.shibboleth.net/view/?p=java-mvn-enforcer.git;a=commit;h=ff597f116ba69b08d42ed8ec176f10225c98ad0f

The following commit(s) were added to refs/heads/main by this push:
     new ff597f1  JMVN-18 Test on No distribution to check is too restrictive
ff597f1 is described below

commit ff597f116ba69b08d42ed8ec176f10225c98ad0f
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Jan 15 16:03:20 2022 +0000

    JMVN-18 Test on No distribution to check is too restrictive
    
    https://shibboleth.atlassian.net/browse/JMVN-18
---
 src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java b/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
index 0c071d3..aeede01 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
@@ -147,7 +147,7 @@ public class JarEnforcer implements EnforcerRule, MavenLoader{
                 zipPaths.add(result);
             }
         }
-        if (zipPaths.isEmpty() && tgzPaths.isEmpty()) {
+        if (zipPaths.isEmpty() && tgzPaths.isEmpty() && (checkSignatures || checkDependencies)) {
             throw new EnforcerRuleException("No <tgzFiles/> or <zipFiles/> provided that exist");
         }
         try {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list