0
votes

Following the documentation

http://grails-plugins.github.io/grails-spring-security-core/guide/single.html#tutorials

it says in order to install the plugin i have to specify it in the BuildConfig file.

In BuildConfig i have the following part:

plugins {
        runtime ":hibernate:$grailsVersion"
        runtime ":jquery:1.8.3"
        runtime ":resources:1.1.6"

        build ":tomcat:$grailsVersion"

        runtime ":database-migration:1.2.1"

        compile ':cache:1.0.1'

        compile 'org.grails.plugins:spring-security-core:3.0.0.M1'

    }

when i run "grails compile" then i get the error

enter image description here

do you know what is causing this error? Thanks for the help!

1

1 Answers

2
votes

you're mixing up versions - you use Grails 2.2.0 with spring security plugin for Grails 3.0

revert to version 2.0 and edit buildconfig, in the plugins section add

compile ':spring-security-core:2.0-RC5'

you also may need to add the following repo in the repositories section

mavenRepo 'http://repo.spring.io/milestone'

see http://grails-plugins.github.io/grails-spring-security-core/v2/ for a complete documentation of the plugin on this version.

If you upgrade to Grails 3.x, you could use this version of spring security.