Dear Lucene Team,
I'm unable to build lucene-9 with JDK-16.0.1 & Gradle 7.1.1. Please find
below errors.

Could not compile script
'/home/lucene/lucene_9/lucene/gradle/testing/alternative-jdk-support.gradle'.
> startup failed:
  script
'/home/lucene/lucene_9/lucene/gradle/testing/alternative-jdk-support.gradle':
21: unable to resolve class JavaInstallationRegistry
   @ line 21, column 26.
     JavaInstallationRegistry registry =
extensions.getByType(JavaInstallationRegistry)
                              ^

  script
'/home/lucene/lucene_9/lucene/gradle/testing/alternative-jdk-support.gradle':
23: unable to resolve class JavaInstallation
   @ line 23, column 18.
     JavaInstallation currentJvm =
registry.installationForCurrentVirtualMachine.get()
                      ^

  script
'/home/lucene/lucene_9/lucene/gradle/testing/alternative-jdk-support.gradle':
25: unable to resolve class JavaInstallation
   @ line 25, column 18.
     JavaInstallation altJvm = {
                      ^

  3 errors


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script '/home/lucene/lucene_9/lucene/gradle/java/javac.gradle' line: 69

* What went wrong:
A problem occurred evaluating project ':lucene:backward-codecs'.
> Failed to apply plugin class 'org.gradle.api.plugins.JavaPlugin'.
   > Could not get unknown property 'runtimeJavaVersion' for root project
'lucene-root' of type org.gradle.api.Project.

Any suggestions would be really very helpful.

Thanks & Regards,
Balmukund

Reply via email to