Is there a general way to do `pluginManager.withP...
# gradle
j
Is there a general way to do
pluginManager.withPlugin
to detect any Kotlin plugin? I wouldn’t want to execute the same block but passing
jvm
,
multiplatform
etc
🚫 1
m
Are there more than jvm and multiplatform ?
Oh android of course
j
I think js was deprecated
👌 3
m
But I think that's 3 of them? I usually call
withPlugin
3 times
j
Not sure if there are more
👍 1
c
There are some more ;-)
m
Yea but those are "different" (do not create the 'kotlin' extension)
It'd be very weird to have to react to all of those in a single code block
c
OP just asked about
detect any Kotlin plugin
😉
j
Thank you both! I was referring to what @mbonnin commented 🙂
c
I guess you could test the existence of the
kotlin
extension