Maksym Moroz
10/07/2025, 9:19 AMproject.pluginManager.withPlugin
But what if I need several plugins to be applied beforehand, for example both agp and kgp? What's the right approach? Is there an API I am missing? Or is the API itself seems to be missing?Martin
10/07/2025, 9:21 AMwithPlugin{} block and then you do an afterEvaluate {} that fails if not all your flags are setMartin
10/07/2025, 9:21 AMafterEvaluate{}Martin
10/07/2025, 9:23 AMMaksym Moroz
10/07/2025, 9:25 AMwithPluginsVampire
10/07/2025, 10:16 AMafterEvaluate, just nest the withPlugin calls if you need both.
pluginManager.withPlugin("<kgp>") {
pluginManager.withPlugin("<agp>") {
// do what needs both plugins applied
}
}Vampire
10/07/2025, 10:16 AMMartin
10/07/2025, 1:13 PMthis is not a valid use-case forYou needafterEvaluate
afterEvaluate{} if you need to fail if the plugins are not applied (which I agree is not part of the original question but often related)Vampire
10/07/2025, 1:14 PMMartin
10/07/2025, 1:15 PMMartin
10/07/2025, 1:16 PMVampire
10/07/2025, 1:16 PMMartin
10/07/2025, 1:16 PMVampire
10/07/2025, 1:17 PMVampire
10/07/2025, 1:17 PMafterEvaluate 🙂Martin
10/07/2025, 1:19 PMafterEvaluate{} TBH.efemoney
10/13/2025, 7:31 AMThis is one of the only valid use cases ofNo, not really, you should chain the with plugins together!afterEvaluate{}
efemoney
10/13/2025, 7:31 AM