The Gradle team is excited to announce Gradle 8.0
This is a companion discussion topic for the original entry at https://github.com/gradle/gradle/releases/tag/v8.0.0
The Gradle team is excited to announce Gradle 8.0
The upgrade to 8.0 broke my build (toolchain download) with the message: and toolchain download repositories have not been configured which indicates to me that the “default repository” was removed from gradle? When using the recommended id(“org.gradle.toolchains.foojay-resolver-convention”) version(“0.4.0”) it errors so i guess the name “foojay” indicates that this is just an noop implementation/template?
> Failed to apply plugin 'org.gradle.toolchains.foojay-resolver-convention'.
> class org.gradle.api.internal.project.DefaultProject_Decorated cannot be cast to class org.gradle.api.initialization.Settings (org.gradle.api.internal.project.DefaultProject_Decorated and org.gradle.api.initialization.Settings are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @3e6fa38a)
Is this intended or a bug i should file over at github?
Gradle 7.6 can download my java 19 toolchain - Gradle 8.0 fails. I read the "Auto provisioning section as linked in the error message (Toolchains for JVM projects) but I am confused because as far as I understand it I now need to write a custom repository download plugin just to archive the same as I was able to do with Gradle 7.x? Do you offer the old “default adoptium toolchain” as a seperate plugin, if so i can’t find info about it.
No, it’s not noop.
The error tells you that you try to apply a settings plugin to a project.
Apply it in the settings script, not a build script.