Maybe this will not break project isolation in the future but now it does.
Not sure if this can be done via settings plugin in some way.
More info about use cases which Gradle is watching to try to solve it in the future here:
https://github.com/gradle/gradle/issues/22514