Gradle plugin: findProperty
causes "Project <x> cannot dynamically look up a property in the parent project" when Isolated Projects enabled
#3656
Labels
bug
runner: gradle plugin v2
Issues fixed by Dokka Gradle Plugin v2 - see https://github.com/Kotlin/dokka/issues/3131
Milestone
Describe the bug
Using Gradle's Isolated Projects mode flags an issue caused by this plugin.
dokka uses
findProperty
to check whether theorg.jetbrains.dokka.experimental.tryK2
property has been enabled or not. This is problematic as one of its behaviours is to "Search up through this project's ancestor projects" which causes the IP violation.Expected behaviour
It should be possible to use dokka with Isolated Projects enabled.
Screenshots
To Reproduce
./gradlew build -Dorg.gradle.unsafe.isolated-projects=true
Dokka configuration
Run dokka with Gradle runner with
org.jetbrains.dokka.experimental.tryK2
property unset.Installation
Additional context
Possibly dokka support should be added & tracked in YouTrack under https://youtrack.jetbrains.com/issue/KT-64575.
A fix is likely as simple as using
gradleProperty
instead on Gradle 6.2 and up.The text was updated successfully, but these errors were encountered: