Never execute a real Gradle distribution in embedded test mode This will become unsupported such that we do not need to assemble the distribution for embedded mode anymore. The tests that are affected by this were checked and are adjusted:
- If the test can run embedded, the restriction that the test requires a distribution is removed. This is the case for some older tests that were not checked for a long time and tests that involve TestKit or KotlinDSL, for which the embedded support is improved in the next commit. - If the test only requires a forked process, but not a complete distribution, it can run a new process based on the current classpath using 'requiresDaemon().requiresIsolatedDaemon()'. - If the test needs a real distribution, it is ignored in embedded mode.