How to reuse repository in PluginManagementSpec for dependency repository

plugins

(Matthew Rusinak) #1

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!