runningcode / gradle-doctor

The right prescription for your Gradle build.
http://runningcode.github.io/gradle-doctor
Apache License 2.0
723 stars 47 forks source link

Incompatible with project isolation #180

Closed ZacSweers closed 2 years ago

ZacSweers commented 2 years ago

When trying out project isolation, this error is reported

Cause 5: org.gradle.api.InvalidUserCodeException: Cannot access project ':services' from project ':'
        at org.gradle.configurationcache.ProblemReportingCrossProjectModelAccess$ProblemReportingProject.onAccess(ProblemReportingCrossProjectModelAccess.kt:970)
        at org.gradle.configurationcache.ProblemReportingCrossProjectModelAccess$ProblemReportingProject.afterEvaluate(ProblemReportingCrossProjectModelAccess.kt:580)
        at com.osacky.doctor.DoctorPlugin$ensureNoCleanTaskDependenciesIfNeeded$1.execute(DoctorPlugin.kt:170)
        at com.osacky.doctor.DoctorPlugin$ensureNoCleanTaskDependenciesIfNeeded$1.execute(DoctorPlugin.kt:31)
        at org.gradle.api.internal.DefaultMutationGuard$2.execute(DefaultMutationGuard.java:44)
        at org.gradle.internal.Actions.with(Actions.java:249)
runningcode commented 2 years ago

Thanks for reporting. This is due to the clean dependency check. This check will no longer be needed in Gradle 7.4 and will not cause an issue anymore in Gradle 7.4

runningcode commented 2 years ago

Fixed in 0.8.0 https://runningcode.github.io/gradle-doctor/changelog/#080

ZacSweers commented 6 months ago

FYI this regressed, filed #302