This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
The following commit(s) were added to refs/heads/master by this push:
new 34adabb1 [MRESOLVER-573] CollectionConfiguration should ignore
module-info.java (#514)
34adabb1 is described below
commit 34adabb109ca7c2fb64bf83d24e3a77e2e03ca54
Author: Robert Scholte <[email protected]>
AuthorDate: Fri Jun 21 10:18:03 2024 +0200
[MRESOLVER-573] CollectionConfiguration should ignore module-info.java
(#514)
---
.../src/main/java/org/eclipse/aether/tools/CollectConfiguration.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/maven-resolver-tools/src/main/java/org/eclipse/aether/tools/CollectConfiguration.java
b/maven-resolver-tools/src/main/java/org/eclipse/aether/tools/CollectConfiguration.java
index fcf529fe..bac0550a 100644
---
a/maven-resolver-tools/src/main/java/org/eclipse/aether/tools/CollectConfiguration.java
+++
b/maven-resolver-tools/src/main/java/org/eclipse/aether/tools/CollectConfiguration.java
@@ -55,6 +55,7 @@ public class CollectConfiguration {
.map(Path::toAbsolutePath)
.filter(p -> p.getFileName().toString().endsWith(".java"))
.filter(p -> p.toString().contains("/src/main/java/"))
+ .filter(p -> !p.toString().endsWith("/module-info.java"))
.forEach(p -> {
JavaType<?> type = parse(p);
if (type instanceof JavaClassSource javaClassSource) {