Created
July 4, 2011 18:35
-
-
Save sourcerebels/1063756 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grails.project.class.dir = "target/classes" | |
grails.project.test.class.dir = "target/test-classes" | |
grails.project.test.reports.dir = "target/test-reports" | |
grails.project.war.file = "target/${appName}-${appVersion}.war" | |
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 { | |
grailsPlugins() | |
grailsHome() | |
grailsCentral() | |
// uncomment the below to enable remote dependency resolution | |
// from public Maven repositories | |
mavenLocal() | |
mavenCentral() | |
mavenRepo "http://snapshots.repository.codehaus.org" | |
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( | |
[group:'mysql', name:'mysql-connector-java', version:'5.1.16'] | |
) | |
test( | |
[group:'org.mockito', name:'mockito-all', version:'1.8.5'], | |
[group:'org.hamcrest', name:'hamcrest-all', version:'1.1'] | |
) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataSource { | |
pooled = true | |
driverClassName = "org.hsqldb.jdbcDriver" | |
username = "sa" | |
password = "" | |
} | |
hibernate { | |
cache.use_second_level_cache = true | |
cache.use_query_cache = true | |
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider' | |
} | |
// environment specific settings | |
environments { | |
development { | |
dataSource { | |
dbCreate = "update" // one of 'create', 'create-drop','update' | |
url = "jdbc:mysql://localhost:3306/test" | |
username = "test" | |
password = "test" | |
} | |
} | |
test { | |
dataSource { | |
dbCreate = "update" | |
url = "jdbc:hsqldb:mem:testDb" | |
} | |
} | |
production { | |
dataSource { | |
dbCreate = "update" | |
url = "jdbc:hsqldb:file:prodDb;shutdown=true" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testgrailsshell | |
class Persona { | |
String nombre | |
Integer edad | |
static constraints = { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment