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

This commit is contained in:
Dawid Weiss 2021-12-10 19:56:55 +01:00
parent 003fa44357
commit 1bcdc600b3
1 changed files with 5 additions and 1 deletions

View File

@ -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())
}