ake sure you&#8217;ve run the quick start(e.g. grails s2-quickstart com.security User Role) note the package name
</p>
</li>
<li>
<p>
Add the Enforcer dependency:
</p>
</li>
</ol></div>
<div class="paragraph"><p>In Grails 2 add the following to your buildConfig.groovy under the plug-ins section:</p></div>
<div class="listingblock">
<div class="content monospaced">
<pre>compile ":enforcer:1.2.1"</pre>
</div></div>
<div class="paragraph"><p>In grails 3 add the following dependency to your gradle