With jdk23-openjdk
(currently up to date provider of make dependency java-environment
), it fails to build (see below).
With jdk21-openjdk
(java-environment=21
) it builds.
So, please specify a versioned dependency in the makedepends
.
Regards!
==> Starting build()...
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
> Task :lib:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lib:compileJava'.
> Error while evaluating property 'javaCompiler' of task ':lib:compileJava'.
> Failed to calculate the value of task ':lib:compileJava' property 'javaCompiler'.
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=21, vendor=any vendor, implementation=vendor-specific} for LINUX on x86_64.
> No matching toolchain could be found in the locally installed toolchains or the configured toolchain download repositories. Some toolchain resolvers had provisioning failures: foojay (Unable to download toolchain matching the requirements ({languageVersion=21, vendor=any vendor, implementation=vendor-specific}) from 'https://api.foojay.io/disco/v3.0/ids/fce999ff2089b2272d4b92b1b277411a/redirect', due to: Could not get resource 'https://api.foojay.io/disco/v3.0/ids/fce999ff2089b2272d4b92b1b277411a/redirect'.).
* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.10.2/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.10.2/userguide/toolchains.html#sub:download_repositories.
> 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.
BUILD FAILED in 1m 35s
6 actionable tasks: 2 executed, 4 up-to-date
==> ERROR: A failure occurred in build().
Pinned Comments
AsamK commented on 2017-06-17 12:24 (UTC) (edited on 2021-12-12 15:31 (UTC) by AsamK)
I've added a pgp signature to the source file, to import the signing key, run the following command: