While not directly related to this issue, have you considered using [lazy configuration](https://docs.gradle.org/current/userguide/lazy_configuration.html) and also [task configuration avoidance](https://docs.gradle.org/current/userguide/task_configuration_avoidance.html)? _Originally posted by @thc202 in https://github.com/rm3l/datanucleus-gradle-plugin/issues/314#issuecomment-1046254248_