[ 
https://issues.apache.org/jira/browse/LUCENE-10327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462025#comment-17462025
 ] 

Dawid Weiss commented on LUCENE-10327:
--------------------------------------

It's this thing:
https://github.com/gradle/gradle/blob/master/subprojects/language-java/src/main/java/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilder.java#L239-L245

I think it may be possible to just provide javac with a valid source path 
pointing at the top of the sourceset. Or with a fake module path so that gradle 
doesn't add its own. I'll retry tomorrow.

> gradle emits an empty sourcepath for forked javac and breaks compilation
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-10327
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10327
>             Project: Lucene - Core
>          Issue Type: Sub-task
>            Reporter: Dawid Weiss
>            Priority: Blocker
>
> {code}
> gradlew -p lucene/core compileJava -Pruntime.java.home=...
> cat lucene/core/build/tmp/compileJava/java-compiler-args.txt 
> ...
> -sourcepath
> ""
> ...
> {code}
> We have to get rid of sourcepath here. I don't know how. Looks like a gradle 
> bug - it would work with gradle's "module support" enabled because I see 
> switches in the code that set the sourcepath correctly but doesn't work 
> otherwise.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to