You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2024/06/21 08:06:09 UTC
(maven-resolver) 01/01: [MRESOLVER-573] CollectionConfiguration should ignore module-info.java
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch MRESOLVER-573
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
commit 47fd3db720250b39dd2502b5c70e75218b8941d1
Author: Robert Scholte <rf...@apache.org>
AuthorDate: Fri Jun 21 10:05:57 2024 +0200
[MRESOLVER-573] CollectionConfiguration should ignore module-info.java
---
.../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) {