title: get classpath dependency in custom gradle plugin
body: <p>I have to declare dependency for my custom plugin in <code>buildscript</code></p>
  
  <pre><code>buildscript {
      dependencies {
          classpath files (["project/path/to/compiled/classes"])
  
          classpath ("com.project.plugin:custom-plugin:${pluginVersion}")
      }
  }
  </code></pre>
  
  <p>Is it possible to get them somehow inside plugin class</p>
  
  <pre><code>public class PluginClass implements Plugin&lt;Project&gt; {
  
      @Override
      public void apply(Project project) {
          project.getExtensions().create("pluginConfig", PluginExtension.class);
          project.getTasks().create("plugin", PluginTask.class);
      }
  
  }
  </code></pre>
  
  <p>or pass them using extension? Something like:</p>
  
  <pre><code>porject.getDependencies().create(classpath_dependency)
  </code></pre>