Slackbot
05/24/2022, 12:35 AMgrossws
05/24/2022, 1:12 AMThomas Broyer
05/24/2022, 7:09 AMapply() right from your build script, after adding the plugin as a classpath dependency in buildscript, just like before the plugins {} DSL were introduced — no need to encapsulate it into a plugin (even though I do think it's preferable to use a plugin, but that's an opinion not backed by facts).rmoore
05/24/2022, 4:08 PMapply(…) because it can cause hard-to-solve buildscript classloader issues.
I don't know if it's idiomatic, but I think writing a wrapper binary plugin which conditionally applies the other plugin might work.