[
https://issues.apache.org/jira/browse/SOLR-18184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071136#comment-18071136
]
David Smiley commented on SOLR-18184:
-------------------------------------
I *just* discovered {{org.gradle.java.home=/path/to/your/jdk}} in
gradle.properties. Seems great so far -- just what I'm looking for! Since we
generate this file, we can even provide this filled out on first run --
assuming the current JDK is of an appropriate version, of course. I'll
probably create a PR for this.
I put some effort & LLM cost into a branch for toolchains that's mostly working
but I might not bother moving forward with if it's not solving any problem.
> Gradle: use "toolchains" to select the Java VM
> ----------------------------------------------
>
> Key: SOLR-18184
> URL: https://issues.apache.org/jira/browse/SOLR-18184
> Project: Solr
> Issue Type: Task
> Components: Build
> Reporter: David Smiley
> Priority: Major
> Attachments: idempotent-wandering-micali.md
>
>
> This issue proposed switching our Gradle build's JVM selection to use Gradle
> Toolchain. This is convenient for users, as they might have JDK 17 when they
> invoke Gradle, and need not switch to JDK 21 just because Solr requires JDK
> 21 to build. It's also more expected/standard.... it appears that our build
> had expressly avoided this "obvious" choice IMO.
> Indeed that's the case in Lucene land – toolchains were avoided, at least
> because of some issues with selecting preview/EA releases. That doesn't seem
> relevant to us.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]