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

Dawid Weiss commented on LUCENE-9312:
-------------------------------------

Tomoko, I've pushed branch jira/LUCENE-9312 - this adds public gradle API 
support for JVM lookup and makes javac use the alternative JVM, if it's 
specified. I've tested with Java 15 and it works (that is: it doesn't because 
it emits a compilation warning and breaks the build).
{code}
gradlew  -Druntime.java.home=/jdks/jdk-15 -p lucene/analysis/kuromoji test

> Task :altJvmWarning
NOTE: Alternative java toolchain will be used for compilation and tests:
  Project will use Java 15 from: c:\_tmp\jdk-15
  Gradle runs with Java 14 from: C:\Tools\java\jdk


> Task :randomizationInfo
Running tests with randomization seed: tests.seed=5BB3D802175D6281

> Task :lucene:core:compileJava FAILED
warning: [options] system modules path not set in conjunction with -source 11
error: warnings found and -Werror specified
1 error
1 warning

FAILURE: Build failed with an exception.
{code}

> Allow builds against arbitrary JVMs (even those unsupported by gradle)
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-9312
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9312
>             Project: Lucene - Core
>          Issue Type: Sub-task
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to