Fix proposal for JENKINS-23710 - Add support for DependencyDeclarer interface 

At the moment the ProxyBuilder and ProxyPublisher do not support the DependencyDeclarer interface, which means plugin implementing it will not behave properly when used from a template, like the parametrized build trigger plugin.

https://issues.jenkins-ci.org/browse/JENKINS-23710