title: Inheriting gradle plugin in subprojects
body: <p>I want to avoid redundancy and therefore I got one "shared" project that contains looks like this:</p>
  
  <pre><code>plugins {
      id "org.flywaydb.flyway" version "4.2.0"
  }
  
  repositories {
      mavenCentral()
      jcenter()
  }
  
  apply plugin: "java"
  
  dependencies {
      compile "commons-io:commons-io:2.4"
  
      // ...
  }
  </code></pre>
  
  <p>Then I also have my regular projects that inherit the compile dependencies from my shared project like this:</p>
  
  <pre><code>apply plugin: "java"
  
  repositories {
      mavenCentral()
      jcenter()
  }
  
  dependencies {
      compile project(":shared")
      testCompile project(":shared")
  }
  </code></pre>
  
  <p>Is there any way I can make my regular projects inherit the plugin block or the actual plugin as well?</p>