iamsanjay commented on PR #2682:
URL: https://github.com/apache/solr/pull/2682#issuecomment-2406309889
gradle Auto-provisioning is disabled.
```
./gradlew -q javaToolchains
+ Options
| Auto-detection: Enabled
| Auto-download: Enabled
```
Build is failing due to that. It's like now we are basically forcing the
version of tools that being used, in this case two Jdk version 17 and 21.
Otherwise, If you have both version available then no issues.
```
> Task :solr:api:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':solr:api:compileJava'.
> Error while evaluating property 'javaCompiler' of task
':solr:api:compileJava'.
> Failed to calculate the value of task ':solr:api:compileJava' property
'javaCompiler'.
> No matching toolchains found for requested specification:
{languageVersion=17, vendor=any, implementation=vendor-specific} for LINUX on
x86_64.
> No locally installed toolchains match and toolchain download
repositories have not been configured.
```
There is a way to enable it via gradle.properties. (I have to check how I
can make this file change on crave, it's not picking it up.)
```
# Disable auto JVM provisioning (we don't use toolchains yet but want no
surprises).
org.gradle.java.installations.auto-download=false
```
There is somewhat related discussion regarding the same in
alternative-jdk-support.gradle.
https://github.com/apache/solr/blob/a4cc5809c52eceffae10cb219299f40e0755e9a9/gradle/testing/alternative-jdk-support.gradle#L25-L35
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]