Apache Lucene open-source search software
LUCENE-10327: workaround for gradle emitting empty sourcepath.
Dawid Weiss5512786dd967
diff --git a/gradle/java/modules.gradle b/gradle/java/modules.gradleindex 45405a25791..94604b99009 100644--- a/gradle/java/modules.gradle+++ b/gradle/java/modules.gradle@@ -110,6 +110,9 @@ allprojects {tasks.named(sourceSet.getCompileJavaTaskName()).configure({ JavaCompile task ->task.dependsOn modularPaths.compileModulePathConfiguration+ // LUCENE-10327: don't allow gradle to emit an empty sourcepath as it would break compilation.+ task.options.setSourcepath(sourceSet.java.sourceDirectories)+// Add modular dependencies and their transitive dependencies to module path.task.options.compilerArgumentProviders.add((CommandLineArgumentProvider) {def modularPathFiles = modularPaths.compileModulePathConfiguration.files