sreedharkesarla / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Plugin incompatible with Grails 2.2.0.RC1 - version 0.6 #272

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I install spock in Grails 2.2 it stop to work
1. grails install-plugin spock
2. grails> create-domain-class com.arm.spock.Cell
| Environment set to development....
| Error Error loading event script from file 
[/Users/victorbenarbia/.grails/2.2.0.RC1/projects/spock-testing/plugins/spock-0.
6/scripts/_Events.groovy] startup failed:
Could not instantiate global transform class 
org.spockframework.compiler.SpockTransform specified at 
jar:file:/Users/victorbenarbia/.grails/ivy-cache/org.spockframework/spock-core/j
ars/spock-core-0.6-groovy-1.8.jar!/META-INF/services/org.codehaus.groovy.transfo
rm.ASTTransformation  because of exception 
java.lang.reflect.InvocationTargetException

1 error
 (Use --stacktrace to see the full trace)
| Error Error running script create-domain-class com.arm.spock.Cell: startup 
failed:
Could not instantiate global transform class 
org.spockframework.compiler.SpockTransform specified at 
jar:file:/Users/victorbenarbia/.grails/ivy-cache/org.spockframework/spock-core/j
ars/spock-core-0.6-groovy-1.8.jar!/META-INF/services/org.codehaus.groovy.transfo
rm.ASTTransformation  because of exception 
java.lang.reflect.InvocationTargetException

1 error

Possible reason :
 - Grails 2.0 support

What version of Spock and Groovy are you using?
 - Spock 0.6
 - Grails 2.2.0RC1

Original issue reported on code.google.com by jvm...@gmail.com on 4 Oct 2012 at 6:27

GoogleCodeExporter commented 8 years ago
AFAIK, 0.6 only supports Grails versions up to 2.1. Can you try with this?

grails.project.dependency.resolution = {
  repositories {
    grailsCentral()
    mavenCentral()
  }
  dependencies {
    test "org.spockframework:spock-grails-support:0.7-groovy-2.0-SNAPSHOT"
  }
  plugins {
    test(":spock:0.7-SNAPSHOT") {
      exclude "spock-grails-support"
    }
  }
}

Original comment by pnied...@gmail.com on 4 Oct 2012 at 9:25

GoogleCodeExporter commented 8 years ago
Sorry, that won't work. I'll try to get someone to look into this.

Original comment by pnied...@gmail.com on 4 Oct 2012 at 9:32

GoogleCodeExporter commented 8 years ago
I confirm this doesn't work.

Original comment by victor.b...@gmail.com on 19 Oct 2012 at 8:08

GoogleCodeExporter commented 8 years ago
0.7 final is out by now. Please follow the installation instructions at 
http://grails.org/plugin/spock.

Original comment by pnied...@gmail.com on 1 Nov 2012 at 11:11