title: Gradle projects sharing artifactory plugin dependency
body: <p>I have three gradle projects: 'foo', 'bar' and 'core'. 'foo' and 'bar' need to use the artifactory plugin: 'foo' publishes dependencies needed by 'bar'. The artifactory plugin dependency is defined in 'core' and I need project 'foo' and 'bar' to be able to use it. </p>
  
  <p>Is there a clear way of doing this in gradle 2.12? Project 'core' needs to exist because if the version of the dependencies 'foo' publishes changes I want to update 'core' instead of 'bar', hence avoiding a redeploy of 'bar'</p>
  
  <p>Project foo - build.gradle:</p>
  
  <pre><code>group 'foo'
  version '1.0-SNAPSHOT'
  
  apply from: "/path/to/core/artifactory-war.gradle"
  
  apply plugin: 'com.jfrog.artifactory'
  </code></pre>
  
  <p>Project bar - build.gradle:</p>
  
  <pre><code> group 'foo'
      version '1.0-SNAPSHOT'
  
      apply from: "/path/to/core/artifactory.gradle"
  
      apply plugin: 'com.jfrog.artifactory'
  </code></pre>
  
  <p>Project core - artifactory-war.gradle:</p>
  
  <pre><code>apply from: "/path/to/core/artifactory.gradle"
  
  apply plugin: 'com.jfrog.artifactory'
  
  publishing {
      //...
  }
  </code></pre>
  
  <p>Project core - artifactory.gradle:</p>
  
  <pre><code>group 'core'
  version '1.0-SNAPSHOT'
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0"
      }
  }
  
  apply plugin: org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin
  
  artifactory {
      // ...
  }
  </code></pre>
  
  <p>As of now I cannot use the artifactory plugin in project 'foo': </p>
  
  <pre><code>Plugin with id 'com.jfrog.artifactory' not found.
  </code></pre>