grails-plugins / grails-rest-client-builder

REST client plugin that uses Spring's RestTemplate
http://grails.org/plugin/rest-client-builder
Apache License 2.0
65 stars 32 forks source link

Is it possible to use Grape to use this as a dependency in a local Groovy file? #52

Open danstadler-pdx opened 7 years ago

danstadler-pdx commented 7 years ago

I am successfully using this plugin in Grails (many thanks btw!), but for iterative coding changes I'd like to just try using this library in some Groovy code in groovyConsole, and quickly try out changes before moving the working code back into my Grails project.

After looking at this page: https://mvnrepository.com/artifact/org.grails.plugins/rest-client-builder/2.1.1 , I tried adding this at the top of my groovy script: @Grab(group='org.grails.plugins', module='rest-client-builder', version='2.1.1')

But when I run the script, I get the following error message: java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: org.grails.plugins#rest-client-builder;2.1.1: not found]

I also tried it this way, same result: @Grapes( @Grab(group='org.grails.plugins', module='rest-client-builder', version='2.1.1') ) Appreciate any help on this.