Skip to content

Commit af308eb

Browse files
authored
Restore GradleInternal.getRootProject overload for binary compatibility (#38214)
2 parents 896dc44 + 239361b commit af308eb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎subprojects/core/src/main/java/org/gradle/api/internal/GradleInternal.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.gradle.api.ProjectEvaluationListener;
2020
import org.gradle.api.internal.initialization.ClassLoaderScope;
2121
import org.gradle.api.internal.plugins.PluginAwareInternal;
22+
import org.gradle.api.internal.project.ProjectInternal;
2223
import org.gradle.api.internal.project.ProjectRegistry;
2324
import org.gradle.api.internal.project.ProjectState;
2425
import org.gradle.api.invocation.Gradle;
@@ -159,4 +160,9 @@ public interface GradleInternal extends Gradle, PluginAwareInternal {
159160
* Resets the lifecycle for this Gradle object.
160161
*/
161162
void resetState();
163+
164+
// We technically don't need this overload, but some plugins using GradleInternal break at runtime if we remove it
165+
// E.g. see https://github.com/quarkusio/quarkus/issues/54851
166+
@Override
167+
ProjectInternal getRootProject() throws IllegalStateException;
162168
}

0 commit comments

Comments
 (0)