You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/12/19 07:52:10 UTC

[lucene] 02/02: LUCENE-10327: workaround for gradle emitting empty sourcepath.

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 5512786dd9679fd3322850fcda63795be8f2c21d
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Sun Dec 19 08:52:01 2021 +0100

    LUCENE-10327: workaround for gradle emitting empty sourcepath.
---
 gradle/java/modules.gradle | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gradle/java/modules.gradle b/gradle/java/modules.gradle
index 45405a2..94604b9 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