How to reuse repository in PluginManagementSpec for dependency repository

Hello,

I’m trying to write a plugin that standardizes a bit of configuration across multiple projects where I work. Due to this every project needs to declare our internal artifact server in settings.gradle in the pluginManagement { repositories { .... } } section.

I would love to apply this same repository as the one used for the project’s actual repositories { ... } configuration, but I haven’t had much luck figuring out how I can get at that in my plugin.

Any suggestions? Thanks!

2 Likes

I don’t have an answer but about the same question. I know where to find the repository data for the buildScript and for the dependencies … but I can’t figure out where settings pluginManagement puts them…