You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GSON converter (and maybe other places, not sure) has a dependency on GrailsWebUtil on or about line 57. GrailsWebUtil has a dependency on spring test, but you're not exporting the dependency in your plugin. If a user isn't utilizing spring-test, or they're not exporting it at run time, that results in a ClassNotFound error being thrown from GrailsWebUtils. To resolve (as many people have reported) you have to list a runtime dependency as follows:
Several other people have reported this in a round-about way, but I don't think they're reporting it very clearly. They state it only affects war runs, etc. To be clear, so far as I can tell this affects ANY running application in dev or production mode that doesn't explicitly declare that dependency or get it transitively. I'm assuming your test app is getting it transitively from the spock dependency you have in the plugin, but I'm not positive about that.
I'd submit a patch, but I don't know how you want to fix it. The way I see it there are a few options:
push it back up to the grails team as most people aren't going to be deploying spring-test jars with their war file, but they certainly might be using GrailsWebUtils. One could argue it's inappropriate to have Mocking functionality in that class since it's used in production code as well.
Export the dependency from your plugin so new installs get it out the gate. May be an issue of versions though if they're also using spring-test
List the dependency in the documentation / configuration.
Change the plugin to get the content-type some other way.
Thoughts?
The text was updated successfully, but these errors were encountered:
The GSON converter (and maybe other places, not sure) has a dependency on GrailsWebUtil on or about line 57. GrailsWebUtil has a dependency on spring test, but you're not exporting the dependency in your plugin. If a user isn't utilizing spring-test, or they're not exporting it at run time, that results in a ClassNotFound error being thrown from GrailsWebUtils. To resolve (as many people have reported) you have to list a runtime dependency as follows:
runtime 'org.springframework:spring-test:3.2.8.RELEASE'
Several other people have reported this in a round-about way, but I don't think they're reporting it very clearly. They state it only affects war runs, etc. To be clear, so far as I can tell this affects ANY running application in dev or production mode that doesn't explicitly declare that dependency or get it transitively. I'm assuming your test app is getting it transitively from the spock dependency you have in the plugin, but I'm not positive about that.
I'd submit a patch, but I don't know how you want to fix it. The way I see it there are a few options:
Thoughts?
The text was updated successfully, but these errors were encountered: