Open consp1racy opened 5 months ago
+1 to this issue. Bellow a configuration cache reports that lists cannot access task dependencies directly
issues as well as cannot dynamically look up a property in the parent project
on ksp.experimental.processing.model
and a bunch of others.
The cannot dynamically look up a property in the parent project
errors have been fixed in #2034
buildDependencies.getDependencies(null)
isn't compatible with Project Isolation.https://github.com/google/ksp/blob/d8efe453f331f0568ffc8c3f2f64a1cbbd951a81/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt#L300-L332
https://github.com/google/ksp/blob/d8efe453f331f0568ffc8c3f2f64a1cbbd951a81/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt#L863-L866
https://github.com/gradle/gradle/blob/master/platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/configurationcache/ReportingTaskDependencyUsageTracker.kt
I'm looking for a PI-compatible alternative API. Or waiting for the Gradle team to make the exiting API compatible ^^
Reading properties from parent projects can be prevented by assigning same-named extras on every project using KSP. That's another problem, that can already be worked around.