id("org.gradlex.java-module-dependencies") is applied in pre-compiled Kotlin DSL plugin
- the plugins are compiled stand alone (not through includeBuild)
- only when building with a certain empty cache - successive runs (even with clean) work without issues
This should not happen as the constructor runs during configuration time and it should be okay to do what we do. Still, we can probably avoid it by getting the rootDir earlier and injecting it.
https://scans.gradle.com/s/v2rdyho5f23rs/failures
Reproduce:
- Have a build wit the above described condition
- Run with empty Gradle user home