In the FregeFX project, I use the frege plugin from the plugin portal.
I have to apply the plugin to both subprojects (fregefx and examples) but not the root project as the root is not a frege project itself and thus doesn’t build with the frege plugin applied.
As of now, I have to duplicate the “plugins” block in both subprojects since I cannot put it in the “subprojects” block of root.
I would find it more consistent if plugin application from portal would also play nicely with subproject blocks.
You are correct, the plugins { } block cannot be used within a subprojects { } block. This is a known limitation. If you want to apply the plugin to all subprojects you’ll have to use the alternate syntax.
Is it known when this limitation will be addressed (or is there an issue we can track). It would be nice to switch to the new approach, but we can’t since we use multi-projects.