Hello
what would be the recommended way to apply plugins conditionally.
Say I have a set of convention plugins and those plugins configure other plugins e.g
plugins {
id 'maven-publish'
id 'io.freefair.lombok'
id 'com.jfrog.artifactory' //baaad plugin
id 'project-report'
}
So now I might not need the artifactory plugin in every project that uses this convention plugin.
Is there a (recommended) way to enable client projects (e.g. which never should be published to artifactory) of this convention plugin to prevent the configuration of certain plugins (say the artifactory plugin in this case) at all?
Or is it even a best practice to create multiple convention plugins and in this case one that only provides the artifactory stuff so that client projects only apply this convention plugin when needed?
Thx.
Rob