Skip to content

Upgrade to grails 2.3.11 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ jdk:
- oraclejdk7

before_install:
- sudo add-apt-repository -y ppa:groovy-dev/grails
- sudo apt-get update
- sudo apt-get install grails-2.0.1

script: grails test-app
script: ./grailsw refresh-dependencies
&& ./grailsw test-app
53 changes: 49 additions & 4 deletions CasperRunnerGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,70 @@
* Grails CasperJS Tests Runner plugin descriptor.
*/
class CasperRunnerGrailsPlugin {

// the plugin version
def version = "0.3-SNAPSHOT"

def grailsVersion = "2.0 > *"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.3 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/error.gsp"
]

def title = "CasperJS Tests Runner Plugin"

def author = "Ulrich VACHON"
def authorEmail = "[email protected]"
def description = '''\
Runs functional CapserJS tests in Grails application. The results of these tests are reported in xUnit XML files compatible. To run the tests, you must enter the following command: grails test-app casper:
'''

// URL to the plugin's documentation
def documentation = "https://github.com/ulrich/grails-casper-plugin"

// Extra (optional) plugin metadata

// License: one of 'APACHE', 'GPL2', 'GPL3'
def license = "MIT"

// Details of company behind the plugin (if there is one)
def organization = [name: "Reservoir Code", url: "http://www.reservoircode.net/"]

// Any additional developers beyond the author specified above.
def developers = [[name: "Ulrich VACHON", email: "[email protected]"]]

// Location of the plugin's issue tracker.
def issueManagement = [system: "Github", url: "https://github.com/ulrich/grails-casper-plugin/issues"]

// Online location of the plugin's browseable source code.
def scm = [url: "https://github.com/ulrich/grails-casper-plugin"]

def doWithWebDescriptor = { xml ->
// TODO Implement additions to web.xml (optional), this event occurs before
}

def doWithSpring = {
// TODO Implement runtime spring config (optional)
}

def doWithDynamicMethods = { ctx ->
// TODO Implement registering dynamic methods to classes (optional)
}

def doWithApplicationContext = { ctx ->
// TODO Implement post initialization spring config (optional)
}

def onChange = { event ->
// TODO Implement code that is executed when any artefact that this plugin is
// watching is modified and reloaded. The event contains: event.source,
// event.application, event.manager, event.ctx, and event.plugin.
}

def onConfigChange = { event ->
// TODO Implement code that is executed when the project configuration changes.
// The event is the same as for 'onChange'.
}

def onShutdown = { event ->
// TODO Implement code that is executed when the application shuts down (optional)
}
}
5 changes: 4 additions & 1 deletion application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
app.grails.version=2.0.1
#Grails Metadata file
#Fri Aug 15 15:55:57 UTC 2014
app.grails.version=2.3.11
app.name=grails-casper-plugin
56 changes: 43 additions & 13 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
@@ -1,18 +1,48 @@
grails.project.work.dir = 'target'
grails.project.target.level = 1.7
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"

grails.project.dependency.resolution = {
grails.project.fork = [
// configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
// compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

inherits 'global'
log 'warn'
// configure settings for the test-app JVM, uses the daemon by default
test: false, // [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:false],
// configure settings for the run-app JVM
run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
// configure settings for the run-war JVM
war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
// configure settings for the Console UI JVM
console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]
]

repositories {
grailsCentral()
}
grails.project.dependency.resolver = "maven" // or ivy
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
grailsCentral()
mavenLocal()
mavenCentral()
// uncomment the below to enable remote dependency resolution
// from public Maven repositories
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
// runtime 'mysql:mysql-connector-java:5.1.27'
}

plugins {
build(":release:2.2.1") {
export = false
}
}
plugins {
build(":release:3.0.1",
":rest-client-builder:1.0.3") {
export = false
}
}
}
24 changes: 20 additions & 4 deletions grails-app/conf/Config.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
// configuration for plugin testing - will not be included in the plugin zip

log4j = {
error 'org.codehaus.groovy.grails',
'org.springframework',
'org.hibernate',
'net.sf.ehcache.hibernate'
// Example of changing the log pattern for the default console
// appender:
//
//appenders {
// console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
//}

error 'org.codehaus.groovy.grails.web.servlet', // controllers
'org.codehaus.groovy.grails.web.pages', // GSP
'org.codehaus.groovy.grails.web.sitemesh', // layouts
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
'org.codehaus.groovy.grails.web.mapping', // URL mapping
'org.codehaus.groovy.grails.commons', // core / classloading
'org.codehaus.groovy.grails.plugins', // plugins
'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
'org.springframework',
'org.hibernate',
'net.sf.ehcache.hibernate'
}
20 changes: 10 additions & 10 deletions grails-app/conf/DataSource.groovy
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
dataSource {
pooled = true
driverClassName = 'org.h2.Driver'
username = 'sa'
password = ''
dbCreate = 'update'
url = 'jdbc:h2:mem:testDb'
pooled = true
jmxExport = true
driverClassName = "org.h2.Driver"
username = "sa"
password = ""
}

hibernate {
cache.use_second_level_cache = false
cache.use_query_cache = false
cache.provider_class = 'org.hibernate.cache.EhCacheProvider'
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' // Hibernate 3
// cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
singleSession = true // configure OSIV singleSession mode
}
Loading