Grails 2.3.9 - Error: ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType -
whenever enter grails command: test-app error:
error executing script testapp: java.lang.classnotfoundexception: grails.plugin.spock.test.grailsspectesttype (use --stacktrace see full trace)
in buildconfig.groovy have:
grails.project.dependency.resolution = { ... plugins { ... test ":spock:0.7" } }
i've tried replacing compile ":spock:0.7" . i've tried cleaning application , refreshing dependencies no luck.
any ideas , how fix it?
thanks
for grails 2.2+ try code in buildconfig:
grails.project.dependency.resolution = { repositories { grailscentral() mavencentral() } dependencies { test "org.spockframework:spock-grails-support:0.7-groovy-2.0" } plugins { test(":spock:0.7") { exclude "spock-grails-support" } } }
for more info check out: https://grails.org/plugin/spock
Comments
Post a Comment