strong-easter-55319
02/06/2023, 12:34 PM./gradlew build
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/gamboad/Sites/datahub/metadata-service/restli-servlet-impl/build.gradle' line: 80
* What went wrong:
A problem occurred evaluating project ':metadata-service:restli-servlet-impl'.
> Could not resolve all dependencies for configuration ':metadata-service:restli-servlet-impl:dataModel'.
> Failed to calculate the value of task ':metadata-models:compileJava' property 'javaCompiler'.
> Unable to download toolchain matching these requirements: {languageVersion=8, vendor=any, implementation=vendor-specific}
> Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
> Could not read '<https://api.adoptopenjdk.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/adoptopenjdk>' as it does not exist.
* 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.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 1m 58s
My java version is 11
$ java --version
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment Homebrew (build 11.0.18+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.18+0, mixed mode)
The issue seems the be related with the gradle version, which version should I use?gentle-hamburger-31302
02/06/2023, 12:38 PMstrong-easter-55319
02/06/2023, 12:59 PMgentle-hamburger-31302
02/06/2023, 1:00 PMstrong-easter-55319
02/06/2023, 1:11 PMstrong-easter-55319
02/06/2023, 1:12 PM> Configure project :metadata-service:factories
fullVersion=da85e73
cliMajorVersion=da85e73
version=da85e73
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/gamboad/Sites/datahub/metadata-service/restli-servlet-impl/build.gradle' line: 80
* What went wrong:
A problem occurred evaluating project ':metadata-service:restli-servlet-impl'.
> Could not resolve all dependencies for configuration ':metadata-service:restli-servlet-impl:dataModel'.
> Failed to calculate the value of task ':metadata-models:compileJava' property 'javaCompiler'.
> Unable to download toolchain matching these requirements: {languageVersion=8, vendor=any, implementation=vendor-specific}
> Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
> Could not read '<https://api.adoptopenjdk.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/adoptopenjdk>' as it does not exist.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':metadata-service:restli-servlet-impl'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)strong-easter-55319
02/06/2023, 1:12 PM:metadata-jobs:mce-consumer-jobgentle-hamburger-31302
02/06/2023, 1:13 PMgentle-hamburger-31302
02/06/2023, 1:14 PMstrong-easter-55319
02/06/2023, 1:15 PMgentle-hamburger-31302
02/06/2023, 1:35 PMbrainy-tent-14503
02/06/2023, 4:18 PMzulu variant, gradle is not able to fetch one that is compatible automatically, however it can use one if it is already installed.strong-easter-55319
02/07/2023, 8:32 AMstrong-easter-55319
02/07/2023, 8:47 AMbrainy-tent-14503
02/07/2023, 3:35 PMwitty-butcher-82399
02/13/2023, 5:03 PM➜ datahub git:(master) java -version
openjdk version "11.0.18" 2023-01-17 LTS
OpenJDK Runtime Environment Zulu11.62+17-CA (build 11.0.18+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.62+17-CA (build 11.0.18+10-LTS, mixed mode)
➜ datahub git:(master)
➜ datahub git:(master) ./gradlew build -x test -x yarnTest
To honour the JVM settings for this build a single-use Daemon process will be forked. See <https://docs.gradle.org/6.9.2/userguide/gradle_daemon.html#sec:disabling_the_daemon>.
Daemon will be stopped at the end of the build
Configuration on demand is an incubating feature.
> Configure project :datahub-frontend
fullVersion=v0.9.6-45-g54c5017
cliMajorVersion=0.9.6
...
Build file '/Users/sergio.gomez.villamor/github/sgv/datahub/metadata-service/restli-servlet-impl/build.gradle' line: 80
* What went wrong:
A problem occurred evaluating project ':metadata-service:restli-servlet-impl'.
> Could not resolve all dependencies for configuration ':metadata-service:restli-servlet-impl:dataModel'.
> Failed to calculate the value of task ':metadata-models:compileJava' property 'javaCompiler'.
> Unable to download toolchain matching these requirements: {languageVersion=8, vendor=any, implementation=vendor-specific}
> Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
> Could not read '<https://api.adoptopenjdk.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/adoptopenjdk>' as it does not exist.
* 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.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 12sbrainy-tent-14503
02/13/2023, 6:32 PM$ /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin/javac -version
javac 1.8.0_345
$ /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/javac -version
javac 11.0.16.1
Those are the locations on my system, yours might vary. Do you have a jdk8 available but it is not being detected?witty-butcher-82399
02/14/2023, 2:54 PM➜ datahub git:(master) jenv versions
system
openjdk64-11.0.18
zulu64-1.8.0.362
* zulu64-11.0.18 (set by /Users/sergio.gomez.villamor/github/sgv/datahub/.java-version)
➜ datahub git:(master)
Thanks!thankful-family-92426
02/23/2023, 12:33 AMbrainy-tent-14503
02/23/2023, 2:25 PM