When my plugin reacts to another plugin classes from the other plugin can't be found, even though both plugins are applied to the same project #27218
Labels
a:bug
in:plugin-management
re:comprehensibility
reasonable errors and warnings, clear dsl, mental overload
Current Behavior
I have a plugin in buildSrc. When reacting to another plugin (Kotlin Gradle Plugin) it is not able to load classes from KGP, even though both plugins are applied to the same subproject.
Expected Behavior
I have a plugin in buildSrc. When reacting to another plugin (Kotlin Gradle Plugin) it is
notable to load classes from KGP,even thoughbecause both plugins are applied to the same subproject.If this problem can't be fixed then there should be a warning and documentation that explains this behaviour, and how to work around it.
Context (optional)
This problem causes issues with Dokkatoo adamko-dev/dokkatoo#123
https://slack-chats.kotlinlang.org/t/16097568/how-can-i-fetch-the-kotlin-project-extension-i-m-trying-to-f#6c1105ca-61cb-4e81-8da7-c5582b6a1786
Steps to Reproduce
test-classloaders.zip
Weirdly if I log the available extensions, I can see that
KotlinProjectExtension
is present.Gradle version
8.5
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: