Enable debug option for Kotlin in Gradle Plugin tests

See gh-36617
This commit is contained in:
Christoph Dreis 2023-07-27 19:07:14 +02:00 committed by Andy Wilkinson
parent 87554fb4dc
commit 42e89079d3
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,8 @@ public class GradleBuild {
GradleRunner gradleRunner = GradleRunner.create()
.withProjectDir(this.projectDir)
.withPluginClasspath(pluginClasspath());
if (this.dsl != Dsl.KOTLIN && !this.configurationCache) {
// see https://github.com/gradle/gradle/issues/6862
if (!this.configurationCache) {
// See https://github.com/gradle/gradle/issues/14125
gradleRunner.withDebug(true);
}
if (this.gradleVersion != null) {