I would like to simplify the way how a group of other plugins are applied and configured - the meta-plugin would take care of adding required dependencies, applying plugins and providing default configuration. However, I have problem with adding additional dependencies (to the other plugins) on my plugin apply:
InvalidUserDataException: Cannot change dependencies of configuration ':classpath' after it has been resolved
Applying gradle files with
apply from: before my plugin apply is problematic - those file would be required to get from a jar (e.g. with
ant.unjar), some logic would need to be duplicated.
Is there any workaround to allow to add new plugins by the another plugin (on its apply)?