When updating to jvmTarget = JavaVersion.VERSION_17.toString() it will throw, using VERSION_11 is ok.
⚠️ Current behavior
./gradlew refreshVersions
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Configuration cache is an incubating feature.
Configuration on demand is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: refreshVersions
Type-safe project accessors is an incubating feature.
0 problems were found storing the configuration cache.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not determine the dependencies of null.
> Could not resolve all dependencies for configuration ':app:classpath'.
> Failed to calculate the value of task ':build-logic:conventions:compileJava' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific}.
> No locally installed toolchains match (see https://docs.gradle.org/8.0/userguide/toolchains.html#sec:auto_detection) and toolchain download repositories have not been configured (see https://docs.gradle.org/8.0/userguide/toolchains.html#sub:download_repositories).
* 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
BUILD FAILED in 9s
Configuration cache entry stored.
🐛 Describe the bug
When updating to
jvmTarget = JavaVersion.VERSION_17.toString()
it will throw, usingVERSION_11
is ok.⚠️ Current behavior
✅ Expected behavior
Working with JAVA_17
💣 Steps to reproduce
Use Gradle 8.0 and JAVA_17