* What went wrong:
A problem occurred configuring root project 'foo'.
> Could not resolve all files for configuration ':spotless1316845977'.
> Cannot resolve external dependency com.facebook:ktfmt:0.43 because no repositories are defined.
Required by:
project :
If a convention plugin applies Spotless on the root project and this convention plugin is applied via a settings plugin, I got this crash.
I think there is a warning from Gradle about resolving this configuration in the configuration phase instead of lazily too.
In the root project, it is used predeclareDepsFromBuildscript()
If I apply the convention plugin directly instead of being applied by the settings plugin this is not happening.
Stacktrace:
If a convention plugin applies Spotless on the root project and this convention plugin is applied via a settings plugin, I got this crash.
I think there is a warning from Gradle about resolving this configuration in the configuration phase instead of lazily too.
In the root project, it is used
predeclareDepsFromBuildscript()
If I apply the convention plugin directly instead of being applied by the settings plugin this is not happening.