Skip to content

Instantly share code, notes, and snippets.

@antony
Created February 14, 2012 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antony/1826295 to your computer and use it in GitHub Desktop.
Save antony/1826295 to your computer and use it in GitHub Desktop.
A properly configured BuildConfig.groovy for running Geb under Grails 2.0
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 = {
inherits("global") {
}
log "warn"
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
mavenLocal(null)
mavenCentral()
mavenRepo "http://snapshots.repository.codehaus.org"
mavenRepo "http://repository.codehaus.org"
mavenRepo "http://m2repo.spockframework.org/snapshots"
}
dependencies {
runtime 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.0', {
excludes 'httpclient', 'xml-apis', 'groovy'
}
test 'org.codehaus.geb:geb-spock:0.6.2'
'org.seleniumhq.selenium:selenium-firefox-driver:2.18.0'
runtime 'org.apache.httpcomponents:httpcore:4.1.2', 'org.apache.httpcomponents:httpclient:4.1.2'
}
plugins {
test ':geb:0.6.2',
':spock:0.6-SNAPSHOT'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment