Showing posts with label GGTS. Show all posts
Showing posts with label GGTS. Show all posts

2013-10-30

How to install Spring Security Core Plugin 2.0 in Grails


1. in BuildConfig.groovy, add:
compile ':spring-security-core:2.0-RC2'
and maven repository:
mavenRepo 'http://repo.spring.io/milestone'
    note: if not set this maven repository, you will get error:

    org.springframework.security#spring-security-core;3.2.0.RC1: not found

2. run
$ grails compile
    note: if skip this step you will get error:

    Error org.codehaus.groovy.grails.cli.ScriptNotFoundException

3. then run
$ grails s2-quickstart com.testapp User Role
4. done.

2013-10-29

Failed to run new Grails project after upgrade to Grails2.3

after upgrade to Grails 2.3, when you create a new default Grails project, then run-app, it will failed and get error: :
  • Groovy: compiler mismatch Project level is: 2.1 Workspace level is 2.0
  • No such property: descriptor for class: org.codehaus.groovy.grails.plugins.GrailsPluginInfo
  • No such property: version for class: org.codehaus.groovy.grails.plugins.GrailsPluginInfo
How to solve it? here is it:
  1. open Dashboard
  2. install Groovy 2.1 Eclipse Extension
  3. restart GGTS 
  4. (might need clean your project after restart)
  5. open eclipse's Run - Run configuarations, then click "Run" button