Questions tagged [groovy-grape]

85 questions
2
votes
2 answers

Why does SLF4J with slf4j-nop output the StaticLoggerBinder warning when using a Groovy script with @Grab

I have a Groovy script which specifies dependencies using the Grape @Grab annotation. The dependencies specified are spring-web to use RestTemplate, and a dependency on slf4j-nop to avoid the Failed to load class "org.slf4j.impl.StaticLoggerBinder"…
M. Justin
  • 14,487
  • 7
  • 91
  • 130
2
votes
3 answers

How to use Grape with Oracle driver?

In my groovy script, I have this code : @Grapes([ @Grab(group='com.oracle', module='ojdbc14', version='10.2.0.3.0') ]) When I run the script, I receive an error message : java.lang.RuntimeException: Error grabbing Grapes -- [download failed: …
Jonathan Lebrun
  • 1,462
  • 3
  • 20
  • 42
2
votes
0 answers

Use @Grab in Jenkins pipeline script

We are trying to use some custom helper functions from a .jar library in our Jenkinsfile. To achieve this, we want to use the @Grab annotation from groovy/grape. Our Jenkinsfile looks like this: @Grab('com.company:jenkins-utils:1.0') import…
Simon Schiller
  • 644
  • 1
  • 8
  • 23
2
votes
1 answer

Is it possible to use @Grab inside a Gradle build.gradle?

Is it possible to use @Grab inside a Gradle build.gradle file? My understanding is that Gradle build scripts are written in Groovy and Grape/@Grab is built into Groovy. But if i attempt to add a @Grab annotation into a build.gradle file it doesn't…
Boy Pike
  • 45
  • 1
  • 6
2
votes
1 answer

How to set a custom Maven repository manager in Grape

I would like to use grape to install a library by command-line. So I've issued the command: grape -V install org.apache.derby derby 10.5.3.0 Grape should use the Maven repository located at http://127.0.0.1:8081/artifactory/webapp/home.html. How…
alessmar
  • 4,689
  • 7
  • 43
  • 52
2
votes
2 answers

How can I find out the place of an artifact in groovy

I have the following groovy dependency declared: @GrabResolver(name='mymirror', root='http://myartifactory/public/') @Grab(group='groupid', module='artifactid', version='1.2.3') println //What should I write here to see:…
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
2
votes
2 answers

@Grab not working in intellij IDE for groovy

I am pretty new to groovy , ans was practicing to make a REST call using the http-builder package , I am trying to add the dependency using a @Grab annotation , but it doesn't download the dependencies , the annotation is not working , My Code :…
2
votes
2 answers

unable to get selenium to work with groovy

a colleague and I have tried for a couple of days to get Selenium to work with groovy, with no success at all. We can get complex tests work with java no problem ... but nothing works under groovy, not even simple things. We get terrible…
Charles F Radley
  • 163
  • 1
  • 2
  • 11
2
votes
1 answer

Why is Grapes grabbing a jar I didn't ask for?

I want to write a simple Groovy script which uses Apache HttpClient 4.1 and since I don't have its jar, I want to grab it with Grapes. All I have so far in my script is.. @Grab(group='org.apache.httpcomponents', module='httpclient',…
2
votes
0 answers

Groovy script stuck on "Resolving dependency"

I'm trying to run a simple groovy script for HTTP requests. Using this dependecy: @Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.1') Running from command line with this: groovy…
2
votes
1 answer

General error during conversion: Error grabbing Grapes download failed net.java.dev.jna

groovy version 2.3.7 installed with gvm on a mac. We are behind a corporate proxy, but maven works fine for java projects here. Tried the following groovy groovySSHtest.groovy contents here @Grab(group='org.hidetake', module='groovy-ssh',…
bigoldrock
  • 57
  • 1
  • 6
2
votes
1 answer

Get Grape grabbing dependencies from Artifactory

I have the following script (run from Jenkins job) that I cannot get to download dependencies! groovy.grape.report.downloads is somewhat useful in that its telling me what it's attempting to download. How can I get grape to tell me where its…
Andrew Sumner
  • 793
  • 2
  • 12
  • 29
2
votes
2 answers

What are the current dependencies for a standalone GORM script?

I am trying to following Graeme Rocher's example from…
Bob Brown
  • 930
  • 2
  • 7
  • 14
2
votes
1 answer

How to use the GrabResolver to use a remote repo in groovysh

I know that you can use @GrabResolver(name='restlet', root='http://maven.restlet.org/') at the start of a groovy file. However, I wish to be able to do this call whilst I am in the groovysh. is there a way to do this?
zcaudate
  • 13,998
  • 7
  • 64
  • 124
2
votes
1 answer

How to exclude local maven repository when installing grape dependencies

I want install some grape depencies to my project: grape install org.codehaus.groovy.modules.http-builder http-builder 0.6 How I can exclude downloading from my maven local repository ? Becase by default it looks like it download from my local…
hudi
  • 15,555
  • 47
  • 142
  • 246