Red Hat
Feb 21, 2015
by Ant

Geb/Spock + Grails
Well, it turns out you have to use the right version of geb-core, geb-spock and spock-core. Not to mention the right version of groovy. After digging around and trying various combinations I finally settled for the combination outlined in the gradle script below:

dependencies {

	def seleniumVersion = "2.42.2"
	def phantomJsVersion = '1.1.0'
	def cargoVersion = '1.4.9'

	// selenium drivers
	compile "org.seleniumhq.selenium:selenium-ie-driver:$seleniumVersion"
	compile "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
	compile "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
	compile "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
	compile("com.github.detro.ghostdriver:phantomjsdriver:$phantomJsVersion") {
		// phantomjs driver pulls in a different selenium version
		transitive = false

	// geb
	compile 'org.codehaus.geb:geb-core:0.7.2'

	// spock
	compile 'org.codehaus.geb:geb-spock:0.7.2'
	compile 'org.spockframework:spock-core:0.6-groovy-1.8'

	// cargo support
	cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion",

[Read the rest]
Original Post