Skip to content

Commit

Permalink
add release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochong committed May 10, 2012
1 parent b3f480a commit cfd5c3d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
3 changes: 2 additions & 1 deletion application.properties
@@ -1,5 +1,6 @@
#Grails Metadata file
#Tue May 08 14:25:31 CST 2012
#Thu May 10 09:44:42 CST 2012
app.grails.version=2.0.3
app.name=zkui
plugins.rest-client-builder=1.0.2
plugins.tomcat=2.0.3
8 changes: 7 additions & 1 deletion grails-app/conf/BuildConfig.groovy
Expand Up @@ -15,6 +15,7 @@ grails.project.dependency.resolution = {
grailsCentral()
mavenCentral()
mavenRepo "http://mavensync.zkoss.org/maven2/"
grailsRepo "http://grails.org/plugins"
// uncomment the below to enable remote dependency resolution
// from public Maven repositories
//mavenLocal()
Expand All @@ -28,11 +29,16 @@ grails.project.dependency.resolution = {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

// runtime 'mysql:mysql-connector-java:5.1.13'
def zkVersion="6.0.1"
def zkVersion = "6.0.1"
runtime "org.zkoss.zk:zk:${zkVersion}"
runtime "org.zkoss.zk:zul:${zkVersion}"
runtime "org.zkoss.zk:zkplus:${zkVersion}"
runtime "org.zkoss.zk:zhtml:${zkVersion}"
runtime "org.zkoss.zk:zkbind:${zkVersion}"
}
plugins {
build ":release:2.0.0", {
export = false
}
}
}
21 changes: 16 additions & 5 deletions grails-app/conf/DataSource.groovy
@@ -1,6 +1,6 @@
dataSource {
pooled = true
driverClassName = "org.hsqldb.jdbcDriver"
driverClassName = "org.h2.Driver"
username = "sa"
password = ""
}
Expand All @@ -13,20 +13,31 @@ hibernate {
environments {
development {
dataSource {
dbCreate = "create-drop" // one of 'create', 'create-drop','update'
url = "jdbc:hsqldb:mem:devDB"
dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:h2:mem:devDb"
}
}
test {
dataSource {
dbCreate = "update"
url = "jdbc:hsqldb:mem:testDb"
url = "jdbc:h2:mem:testDb"
}
}
production {
dataSource {
dbCreate = "update"
url = "jdbc:hsqldb:file:prodDb;shutdown=true"
url = "jdbc:h2:prodDb;MVCC=TRUE"
pooled = true
properties {
maxActive = -1
minEvictableIdleTimeMillis = 1800000
timeBetweenEvictionRunsMillis = 1800000
numTestsPerEvictionRun = 3
testOnBorrow = true
testWhileIdle = true
testOnReturn = true
validationQuery = "SELECT 1"
}
}
}
}

0 comments on commit cfd5c3d

Please sign in to comment.