Installing the Grails Spock plugin in 2.0.0M1

I am kicking tires on Grails 2.0.0M1 and Springsource Tool Suite 2.7.1, but I am having problems installing the spock plugin.

When I run "grails install-plugin spock 0.6-groovy -1.8-SNAPSHOT", I get:

| Downloading: spock-0.6-groovy-1.8-SNAPSHOT.pom :: problems summary :: :::: ERRORS grailsCentral: bad organisation found in http://svn.codehaus.org/grails-plugins/grails-spock/tags/RELEASE_0_6-groovy-1_8-SNAPSHOT/spock-0.6-groovy-1.8-SNAPSHOT.pom: expected='org.grails.plugins' found='org.spockframework' | Error resolving plugin [name:spock, group:org.grails.plugins, version:0.6-groovy-1.8-SNAPSHOT]. Plugin not found. | Error Plugin not found for name [spock] and version [0.6-groovy-1.8-SNAPSHOT] 

Any idea how to get around this?

+4
source share
2 answers

There was the same problem. This was recorded earlier today. Try grails install-plugin spock 0.6-SNAPSHOT (without "groovy -1.8").

See: http://jira.grails.org/browse/GPSPOCK-5?focusedCommentId=65695&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-65695

+4
source

Grails 1.4 / 2.0 requires Groovy 1.8, but they have some problems getting a version of Spock that supports it in Maven Central. The method described here worked fine for us with Grails 1.4.M1. This is a bit cumbersome because it requires you to manually create a JAR and install it in the local Maven repository (thus, it needs to be run on every computer), but you can also try deploying it to the local Nexus / Artifactory.

+1
source

All Articles