Skip to content

Commit

Permalink
Merge pull request #48 from Arkilog/master
Browse files Browse the repository at this point in the history
Upgrade to grails 3 #44 Merged with work to do.
  • Loading branch information
pmcneil committed Jul 21, 2015
2 parents e2f9b45 + 6fffbef commit d40a863
Show file tree
Hide file tree
Showing 45 changed files with 784 additions and 185 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: groovy
jdk:
- oraclejdk7
- oraclejdk8
before_script:
- rm -rf build
- chmod +x ./travis-build.sh
script: ./travis-build.sh
4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
Grails 3 Shiro plugin
=====================

[![Build Status](https://api.travis-ci.org/Arkilog/grails-shiro.png)](http://travis-ci.org/Arkilog/grails-shiro)
3 changes: 3 additions & 0 deletions shiro3/.gitignore
@@ -0,0 +1,3 @@
build/
.gradle/
*~
14 changes: 14 additions & 0 deletions shiro3/LICENSE
@@ -0,0 +1,14 @@
Copyright 2009 Peter Ledbrook

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

80 changes: 69 additions & 11 deletions shiro3/build.gradle
Expand Up @@ -12,11 +12,11 @@ buildscript {
}

plugins {
id "io.spring.dependency-management" version "0.4.0.RELEASE"
id "com.jfrog.bintray" version "1.1"
id "io.spring.dependency-management" version "0.5.2.RELEASE"
id "com.jfrog.bintray" version "1.2"
}

version "3.0-SNAPSHOT"
version "0.1-SNAPSHOT"
group "org.grails.plugins"

apply plugin: 'maven-publish'
Expand All @@ -26,8 +26,8 @@ apply plugin: "spring-boot"
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-gsp"
// Used for publishing to central repository, remove if not needed
apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'

ext {
grailsVersion = project.grailsVersion
Expand Down Expand Up @@ -64,12 +64,70 @@ dependencies {
testCompile "org.grails:grails-plugin-testing"

console "org.grails:grails-console"

compile 'org.apache.shiro:shiro-core:1.2.3'
compile 'org.apache.shiro:shiro-web:1.2.3'
compile 'org.apache.shiro:shiro-spring:1.2.3'
compile 'org.apache.shiro:shiro-ehcache:1.2.3'
compile 'org.apache.shiro:shiro-quartz:1.2.3'
def shiroVersion = '1.2.3'
compile ("org.apache.shiro:shiro-core:$shiroVersion") {
exclude module:'ejb'
exclude module:'jsf-api'
exclude module:'servlet-api'
exclude module:'jsp-api'
exclude module:'jstl'
exclude module:'jms'
exclude module:'connector-api'
exclude module:'ehcache-core'
exclude module:'slf4j-api'
exclude module:'commons-logging'
}
compile ("org.apache.shiro:shiro-web:$shiroVersion") {
exclude module:'ejb'
exclude module:'jsf-api'
exclude module:'servlet-api'
exclude module:'jsp-api'
exclude module:'jstl'
exclude module:'jms'
exclude module:'connector-api'
exclude module:'ehcache-core'
exclude module:'slf4j-api'
exclude module:'commons-logging'
}
compile ("org.apache.shiro:shiro-spring:$shiroVersion") {
exclude module:'ejb'
exclude module:'jsf-api'
exclude module:'servlet-api'
exclude module:'jsp-api'
exclude module:'jstl'
exclude module:'jms'
exclude module:'connector-api'
exclude module:'ehcache-core'
exclude module:'slf4j-api'
exclude module:'commons-logging'
}
compile ("org.apache.shiro:shiro-ehcache:$shiroVersion") {
exclude module:'ejb'
exclude module:'jsf-api'
exclude module:'servlet-api'
exclude module:'jsp-api'
exclude module:'jstl'
exclude module:'jms'
exclude module:'connector-api'
exclude module:'ehcache-core'
exclude module:'slf4j-api'
exclude module:'commons-logging'
}
compile ("org.apache.shiro:shiro-quartz:$shiroVersion") {
exclude module:'ejb'
exclude module:'jsf-api'
exclude module:'servlet-api'
exclude module:'jsp-api'
exclude module:'jstl'
exclude module:'jms'
exclude module:'connector-api'
exclude module:'ehcache-core'
exclude module:'slf4j-api'
exclude module:'commons-logging'
}
// runtime "org.grails.plugins:hibernate:$grailsVersion", {
// export = false
// }
}

task wrapper(type: Wrapper) {
Expand Down
12 changes: 0 additions & 12 deletions shiro3/copy-src.sh

This file was deleted.

2 changes: 1 addition & 1 deletion shiro3/gradle.properties
@@ -1,2 +1,2 @@
grailsVersion=3.0.1
grailsVersion=3.0.3
gradleWrapperVersion=2.3
4 changes: 2 additions & 2 deletions shiro3/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Wed May 20 00:00:47 EST 2015
#Wed Feb 04 17:05:29 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip
11 changes: 7 additions & 4 deletions shiro3/grails-app/conf/application.yml
Expand Up @@ -53,9 +53,6 @@ grails:
defaultScope: singleton
converters:
encoding: UTF-8
hibernate:
cache:
queries: false
views:
default:
codec: html
Expand All @@ -67,8 +64,14 @@ grails:
scriptlets: html
taglib: none
staticparts: none

---
hibernate:
cache:
queries: false
use_second_level_cache: true
use_query_cache: false
region.factory_class: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'

dataSource:
pooled: true
jmxExport: true
Expand Down
35 changes: 0 additions & 35 deletions shiro3/grails-app/grails-app/conf/BuildConfig.groovy

This file was deleted.

This file was deleted.

File renamed without changes.
@@ -1,10 +1,10 @@
package shiro3
package shiro

import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration

class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application)
GrailsApp.run(Application, args)
}
}

0 comments on commit d40a863

Please sign in to comment.