title: Grails 3 and Spring Security Plugin
body: <p>I've just recently started working with Grails, and I'd like to test out the Spring Security Plugin.  I'm using Grails v3.0.0RC2, and I'm finding it difficult to come across accurate documentation for it with a lot of things.</p>
  
  <p>I'm looking at the Grails page for the Spring Security Plugin, located at <a href="http://grails.org/plugin/spring-security-core" rel="noreferrer">http://grails.org/plugin/spring-security-core</a>, and it tells me to add the following to grails-app/conf/BuildConfig</p>
  
  <pre><code>plugins {
    …
    compile ':spring-security-core:2.0-RC4'
    …
  }
  </code></pre>
  
  <p>Now, Grails 3 has done away with the BuildConfig, and moved over to using Gradle. So I figured I could just that compile line to my "dependencies" section in build.gradle and it would work, like so:</p>
  
  <pre><code>dependencies{
    ...
    compile:":spring-security-core:2.0-RC4"
  }
  </code></pre>
  
  <p>However, that did not work. I get the error "Could not find :spring-security-core:2.0-RC4...".</p>
  
  <p>Then I figured, 'Hey, it's a plugin, let me try prefacing it with "org.grails.plugins" like I see elsewhere in the build.gradle file:</p>
  
  <pre><code>dependencies{
    ...
    compile:"org.grails.plugins:spring-security-core:2.0-RC4"
  }
  </code></pre>
  
  <p>And still no go. </p>
  
  <p>I have gotten it to compile by adding the dependency found on search.maven.org, like so: </p>
  
  <pre><code>dependencies{
    ...
    compile 'org.springframework.security:spring-security-core:4.0.0.RELEASE'
  }
  </code></pre>
  
  <p>But I don't think thats the proper way to do, because Grails documentation says I should have access to the command </p>
  
  <pre><code>grails s2-quickstart
  </code></pre>
  
  <p>once the plugin is installed, which I do not when I do it using the Maven repo.</p>
  
  <p>I'm sure there's a simple configuration error I'm making, as I'm very new to both Grails, Spring, and Gradle, so I appreciate any help that can be provided.</p>