Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error... reported #29

Closed
nagkumar opened this issue May 30, 2023 · 3 comments
Closed

error... reported #29

nagkumar opened this issue May 30, 2023 · 3 comments

Comments

@nagkumar
Copy link

* What went wrong:
An exception occurred applying plugin request [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.5.0']
> 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 @335eadca)
@StefMa
Copy link
Contributor

StefMa commented May 30, 2023

You have to apply the plugin in a settings.gradle[.kts] file. Not in a build.gradle[.kts] file.

@nagkumar
Copy link
Author

Oh Thank You, your suggestion fixes the error..

however, this URL says it as put in build.gradle, may be to fix the docs

https://docs.gradle.org/8.1.1/userguide/toolchains.html#sec:provisioning

image

@StefMa
Copy link
Contributor

StefMa commented May 30, 2023 via email

@jbartok jbartok closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants