Can Plugins DSL work with a repo other than the gradle plugins portal

Hi I want to test a custom built version of a plugin that we own with changes made locally.
I want to use the Plugins DSL syntax for including the plugin in my test project for testing it.
Does gradle use all the repos listed in the build script for resolving the plugins listed in the plugins DSL or is it just the gradle plugins portal (

Is there a way for me to publish the plugin locally and use it in my test project ? I had done this by using the apply syntax. I want this to be specifically tested by using the plugin DSL.

Yes, you can use pluginManagement {} in your settings script to declare more repositories, see