Skip to content

Apache Lucene open-source search software

LUCENE-10304: exclude module-info.java from all sourcesets for Eclipse, otherwise things break (predictably).

Dawid Weiss1bcdc600b341
diff --git a/gradle/ide/eclipse.gradle b/gradle/ide/eclipse.gradle
index 0a5b6083d63..4db9ae3ba6c 100644
--- a/gradle/ide/eclipse.gradle
+++ b/gradle/ide/eclipse.gradle
@@ -58,7 +58,11 @@ configure(rootProject) {
jars += prj.configurations.testCompileClasspath.resolve()
}
- classpath.entries += sources.sort().collect {name -> new SourceFolder(name, "build/eclipse/" + name) }
+ classpath.entries += sources.sort().collect { name ->
+ def sourceFolder = new SourceFolder(name, "build/eclipse/" + name)
+ sourceFolder.setExcludes(["module-info.java"])
+ return sourceFolder
+ }
classpath.entries += jars.unique().findAll { location -> location.isFile() }.collect { location ->
new LibEntry(location.toString())
}