Open ZacSweers opened 6 months ago
Thanks for the report. What version of Gradle did you use to reproduce?
Looks like we should check allowBuildingAllAndroidAppsSimultaneously
before calling whenPluginAdded
in order to allow someone to disable this.
I'll check if there is a different API that is compatible with project isolation that we should use instead of whenPluginAdded
.
The problem is target.subprojects
.
> Project ':' cannot access 'Project.tasks' functionality on subprojects
> Project ':' cannot access 'Project.plugins' functionality on subprojects
I'm thinking this should be a settings plugin, which can use gradle.lifecycle.beforeProject
since Gradle 8.8. The API is incubating and will probably change (maybe to use IsolatedProject
?).
Trying project isolation again with 0.9.1, I see the following error
The problem appears to be
whenPluginAdded
: https://github.com/runningcode/gradle-doctor/blob/master/doctor-plugin/src/main/java/com/osacky/doctor/DoctorPlugin.kt#L113-L117