On issue close, I have a scripted post function that is intended to send information to another application through a REST interface. In my IDE, I use grape to get some of my dependencies:
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.6' ) @GrabExclude('xml-apis:xml-apis')
Everything works fine in the IDE... But when I try to run my script in our JIRA instance, I get:
javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 9: unable to resolve class groovyx.net.http.RESTClient
@ line 9, column 1.
import groovyx.net.http.RESTClient
^
Script1.groovy: 10: unable to resolve class groovyx.net.http.ContentType
@ line 10, column 1.
import static groovyx.net.http.ContentType.JSON
^
2 errors
I'd like to know how to pull together the dependencies downloaded by grape in my IDE and store them under "C:\CustomGroovy\classes". I've tried every suggested solution I could find on the web, but after a day of banging my head on the problem I've gotten nowhere. Any help would be appreciated!
Thanks,
Jason