mirror of https://github.com/apache/lucene.git
LUCENE-10304: exclude module-info.java from all sourcesets for Eclipse, otherwise things break (predictably).
This commit is contained in:
parent
003fa44357
commit
1bcdc600b3
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue