diff --git a/.gitignore b/.gitignore index 4202a57..77978bd 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ test/reports/ work/ /web-app/ grails-shiro*.zip -*.iml \ No newline at end of file +*.iml +.idea \ No newline at end of file diff --git a/ShiroGrailsPlugin.groovy b/ShiroGrailsPlugin.groovy index eb6ff5e..bfe33a4 100644 --- a/ShiroGrailsPlugin.groovy +++ b/ShiroGrailsPlugin.groovy @@ -43,7 +43,7 @@ import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreato class ShiroGrailsPlugin { - def version = "1.2.1" + def version = "1.2.2-SNAPSHOT" def grailsVersion = "1.2 > *" def author = "Peter Ledbrook" def authorEmail = "peter@cacoethes.co.uk" diff --git a/application.properties b/application.properties index b0d6bf9..470b143 100644 --- a/application.properties +++ b/application.properties @@ -1,2 +1,2 @@ -app.grails.version=2.2.4 +app.grails.version=2.4.4 app.name=grails-shiro diff --git a/grails-app/conf/BuildConfig.groovy b/grails-app/conf/BuildConfig.groovy index c9e7fc1..97ccc1f 100644 --- a/grails-app/conf/BuildConfig.groovy +++ b/grails-app/conf/BuildConfig.groovy @@ -1,5 +1,6 @@ grails.project.work.dir = 'target' +grails.project.dependency.resolver = "maven" // or ivy grails.project.dependency.resolution = { inherits 'global' @@ -12,22 +13,22 @@ grails.project.dependency.resolution = { } dependencies { - compile ('org.apache.shiro:shiro-core:1.2.2', - 'org.apache.shiro:shiro-web:1.2.2', - 'org.apache.shiro:shiro-spring:1.2.2', - 'org.apache.shiro:shiro-ehcache:1.2.2', - 'org.apache.shiro:shiro-quartz:1.2.2') { + compile ('org.apache.shiro:shiro-core:1.2.3', + 'org.apache.shiro:shiro-web:1.2.3', + 'org.apache.shiro:shiro-spring:1.2.3', + 'org.apache.shiro:shiro-ehcache:1.2.3', + 'org.apache.shiro:shiro-quartz:1.2.3') { excludes 'ejb', 'jsf-api', 'servlet-api', 'jsp-api', 'jstl', 'jms', 'connector-api', 'ehcache-core', 'slf4j-api', 'commons-logging' } } plugins { - runtime ":hibernate:$grailsVersion", { + runtime ":hibernate4:4.3.6.1", { export = false } - build ':release:2.2.1', ':rest-client-builder:1.0.3', { + build ':release:3.0.1', ':rest-client-builder:1.0.3', { export = false } } diff --git a/src/templates/artifacts/filters/SecurityFilters.groovy b/src/templates/artifacts/filters/SecurityFilters.groovy index 64bbf03..c80fc8c 100644 --- a/src/templates/artifacts/filters/SecurityFilters.groovy +++ b/src/templates/artifacts/filters/SecurityFilters.groovy @@ -7,7 +7,7 @@ class @filters.name@ { all(uri: "/**") { before = { // Ignore direct views (e.g. the default main index page). - if (!controllerName) return true + if (!controllerName || controllerName == 'assets') return true // Access control by convention. accessControl()