title: How to get Gradle Spring dependency plugin to work?
body: <p>Because I'm such a newb at this, the problem is context. Their example doesn't match my build. I've installed the jar locally so it should definitely be available. </p>
  
  <p>My project looks like: </p>
  
  <pre><code>    allprojects  {
          apply plugin: 'maven'
          apply plugin: "io.spring.dependency-management"
  
          group = 'com.wnp'
          version = '6.5.0-SNAPSHOT'
      }
  
      subprojects {
  
          apply plugin: 'java'
  
          sourceCompatibility = System.getProperty("java.version")
          targetCompatibility = System.getProperty("java.version")
  
          repositories {
              mavenLocal()
              mavenCentral()
              jcenter()         
          }
  
          dependencyManagement {
              imports {
                  mavenBom 'org.springframework.ws:spring-ws:2.1.4.RELEASE'
                  mavenBom 'org.jboss.as:jboss-as-jms-client-bom:7.5.0.Final-redhat-21'
              }
  
              dependencies {
                  dependency "antlr:antlr:2.7.7" 
         }
  
      }
  
  apply plugin: "io.spring.dependency-management"
  </code></pre>
  
  <p>Their project looks like:</p>
  
  <pre><code>buildscript {
    repositories {
      maven {
        url "https://plugins.gradle.org/m2/"
      }
    }
    dependencies {
      classpath "io.spring.gradle:dependency-management-plugin:0.5.2.RELEASE"
    }
  }
  
  apply plugin: "io.spring.dependency-management"
  </code></pre>
  
  <p>What I'm getting from the system is :</p>
  
  <blockquote>
    <p>Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with
    id 'io.spring.dependency-management' not found.</p>
  </blockquote>
  
  <p>Clues? What does "buildscript" represent? Is that a task? I've tried putting the "dependencies" section just about everywhere. Same goes with the "apply plugin:" line. Is my dependencyManagement section in the right place? One of the things I keep seeing is "dependencies cannot be applied to closure" which is pretty unhelpful as far as error messages go.</p>