Re: the new `gradle.lifecycle.beforeProject {}` ca...
# community-support
m
Re: the new
gradle.lifecycle.beforeProject {}
callbacks introduced in 8.8, is there a reason they are on the
Gradle
class and not the
Settings
one? Calling them anywhere outside
settings.gradle[.kts]
fails with:
Copy code
GradleLifecycle#afterProject cannot be called after settings have been evaluated.
Feels like this could be prevented at build time? Or is there a way to call them outside
Settings
?
e
I've got code calling it from an init script
đź‘€ 1
m
Mmm and no
Settings
there I guess?
I wish new APIs would be less “stateful” and stop using a shared
Gradle
instance. Could the init scripts get another instance,
Init
maybe?