I’m trying to configure different sets of repositories based on the project type, for build plugin projects I would like to configure separate repositories than those used for the standard product builds. A buildSrc project is similar to a build plugin project, but the question is how do I identify it? I’m now using the following:
boolean isBuildSrcProject = rootProject.projectDir.name == 'buildSrc' && rootProject.projectDir == settings.settingsDir
Is this good enough or there is a better way?