This message was deleted.
# community-support
s
This message was deleted.
1
j
project.plugins.withId seem to do the trick here
c
That’s the correct way to do it, avoiding issues of ordering or existence.
v
That's not the correct way. Look at the JavaDoc of
project.plugins
and you learn you should not use it. The correct way is
project.pluginManager.withPlugin
.
j
What's the difference?
v
That one is documented as "you shouldn't use this" and the other being the recommended replacement. Usage and effect wise, they are practically the same.