I have a multi-project setup with 5 subprojects that make use of a gradle custom plugin jar with version 1.0. This custom plugin extends the gradle DSL and provides customized script files for daemon processes that run on RHEL6 OS. We are slowly migrating to RHEL7 hence I created version 2.0 of the custom plugin to provide RHEL7 script files.
I would like to apply this 2.0 version to only 2 of the sub-projects. I was able to do that using configure block in root build.gradle. However at runtime, gradle doesn’t recognize the new attribute added in the 2.0 version of the extension and refers to old version of the plugin class.
Is it possible to apply multiple versions of the custom gradle plugin to some of the projects in a multi-project setup? Or should the plugin be enhanced in a way that it is backward compatible and only the latest version is applied in build script dependencies for all the sub-projects?
Appreciate any help or pointers.