Editing the original question.
I am trying to execute a groovy script which uses classes from an external jar. How can I execute the groovy file from command line?
This is the command I tried
groovy -cp .:cicdutilities-1.0-SNAPSHOT.jar:http-builder-0.4.0.jar Test_Execution.groovy
and getting the error :
`org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /Users/sroy107/git/CICD-2020/src/main/java/com/groovy/Test_Execution.groovy: 188: unable to resolve class HTTPBuilder @ line 188, column 24. def http = new HTTPBuilder(baseUrl) ^ 1 error`
I was not aware earlier that we need two jars. This command is not working. Could somme one please help me on this.