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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -