This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-maven-enforcer-rules.git
The following commit(s) were added to refs/heads/master by this push:
new 4c9410f trivial: minor formatting changes
4c9410f is described below
commit 4c9410f6cd1aef98c3107e1ff1393cde778e6976
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Jun 8 14:38:08 2022 +0200
trivial: minor formatting changes
---
.../maven/enforcer/RequireProvidedDependenciesInRuntimeClasspath.java | 4 ----
1 file changed, 4 deletions(-)
diff --git
a/src/main/java/org/apache/sling/maven/enforcer/RequireProvidedDependenciesInRuntimeClasspath.java
b/src/main/java/org/apache/sling/maven/enforcer/RequireProvidedDependenciesInRuntimeClasspath.java
index 9f6a37e..dcbd124 100644
---
a/src/main/java/org/apache/sling/maven/enforcer/RequireProvidedDependenciesInRuntimeClasspath.java
+++
b/src/main/java/org/apache/sling/maven/enforcer/RequireProvidedDependenciesInRuntimeClasspath.java
@@ -160,7 +160,6 @@ public class RequireProvidedDependenciesInRuntimeClasspath
+ " (" + dumpPaths(artifactResult.getValue()) +
")");
}
}
- // collect all violations
int numViolations = checkForMissingArtifacts(artifactMap,
runtimeArtifacts, log);
if (numViolations > 0) {
throw new EnforcerRuleException("Found " + numViolations + "
missing runtime dependencies. Look at the errors emitted above for the
details.");
@@ -176,7 +175,6 @@ public class RequireProvidedDependenciesInRuntimeClasspath
}
}
-
/**
*
* @param pattern string in in the format {@code
<groupId>[:<artifactId>[:<extension>[:<classifier>]]]}
@@ -240,7 +238,6 @@ public class RequireProvidedDependenciesInRuntimeClasspath
}
}
-
private static final class DependencyVisitorPrinter implements
DependencyVisitor {
private final PrintWriter printWriter;
private String indent = "";
@@ -272,7 +269,6 @@ public class RequireProvidedDependenciesInRuntimeClasspath
protected int
checkForMissingArtifacts(Map<org.eclipse.aether.artifact.Artifact,
List<List<DependencyNode>>> artifactMap, List<Artifact> runtimeArtifacts,
Log log) throws EnforcerRuleException {
int numViolations = 0;
-
for (Entry<org.eclipse.aether.artifact.Artifact,
List<List<DependencyNode>>> artifactResult : artifactMap.entrySet()) {
Artifact dependency =
RepositoryUtils.toArtifact(artifactResult.getKey());
if
(ArtifactUtils.checkDependencies(Collections.singleton(dependency), excludes)
== null) {