I want the exact behavior of `pluginManager.withPl...
# community-support
i
I want the exact behavior of
pluginManager.withPlugin
, but I don't know the plugin ID. • I want to supply a configuration option to be executed when the plugin is added • If the plugin is already added, I want it to execute it immediately However, this plugin doesn't have an ID. It's https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plug[…]n/org/jetbrains/kotlin/gradle/targets/js/nodejs/NodeJsPlugin.kt (from KGP)
v
If it really has no id, you probably need to use the discouraged
plugins
instead of
pluginManager
. Alternatively, you could probably also just invent your own id, but whether that would be cleaner, ... šŸ¤·ā€ā™‚ļø
i
I'm not responsible for that plugin, I just want to configure one of its properties
šŸ‘ 1
but yeah this works
v
I don't think the plugin id definition file needs to be in the same artifact. So the id-adding was suggested with having in mind that you do not maintain the KGP plugin already. šŸ™‚
😮 1