Questions tagged [groovy-grape]

85 questions
0
votes
0 answers

Elasticsearch 5 Java client does not work with Groovy Grape

Not sure this problem is caused by Elasticsearch or Groovy Grape. I have a groovy script that uses Grape to handle dependencies: @Grapes([ @Grab(group = 'org.elasticsearch', module = 'elasticsearch', version = '5.0.0'), @Grab(group =…
Fabrizio Fortino
  • 1,479
  • 1
  • 14
  • 22
0
votes
1 answer

Groovy - use Grape to download documentation and sources

It's possible to use Grape to download a dependency from Maven central: @Grab(group='org.apache.commons', module='commons-lang3', version='3.4') Specifying a type of jar within the Grab annotation does the same…
Malt
  • 28,965
  • 9
  • 65
  • 105
0
votes
1 answer

Unable to download jenkins core jar

I want to download jar for following modules. import jenkins.model.Jenkins I am trying to download jenkins-core but I am facing issues. It says jar not found. @Grapes([ @Grab(group='org.jenkins-ci.main', module='jenkins-core',…
0
votes
1 answer

propagate grape dependencies for multiple classes

I have this class located in file StreamingPOIWriter.groovy @Grapes([ @Grab(group='org.apache.poi', module='poi', version='3.14'), @Grab(group='org.apache.poi', module='poi-ooxml', version='3.14'), @Grab(group='org.apache.poi',…
lapots
  • 12,553
  • 32
  • 121
  • 242
0
votes
2 answers

How to get groovy grape script startup going faster

I've noticed there is like a 10 second hit using a groovy script with Grape annotations on my OSX box. Is it always this way? Can I make grape favor its cache (the depedencies are definitely already on the system in ~/.groovy/grapes...).
dsummersl
  • 6,588
  • 50
  • 65
0
votes
1 answer

Groovy servlet can't find JAR files in Tomcat

I've created a groovlet that will act as a sort of HTTP proxy. It accepts GET requests and then makes web service calls based on the URL provided in the request. Here's the code I've got so…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
0
votes
1 answer

No suitable ClassLoader found for grab while Instantiating a class

I have created two groovy scripts as below. One script has a class which is instantiated in the other script. Both are in default package. When I'm trying to run ImportGpsData.groovy I'm getting the following exception... Caught:…
Buddha
  • 4,339
  • 2
  • 27
  • 51
0
votes
1 answer

Why am I getting "method without body" error when using Groovy Grape?

Below is a code snippet and below that is the error. Am I doing something wrong that's obvious? I'm very new to Grapes. @Grab('com.microsoft:ms-sql-server-jdbc-dependencies') GrabConfig(systemClassLoader=true) import groovy.sql.Sql …
Steve
  • 4,457
  • 12
  • 48
  • 89
0
votes
1 answer

What is happening behind the scene when running this Groovy script?

@Grapes([ @Grab("org.codehaus.geb:geb-core:0.7.2"), @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.15.0"), @Grab("org.seleniumhq.selenium:selenium-support:2.15.0") ]) import geb.Browser Browser.drive { // Load the page go…
Terry Li
  • 16,870
  • 30
  • 89
  • 134
0
votes
1 answer

How do I add a dependency via grape?

I want to play around with NekoHtml, in Groovy. I thought of adding it via Grape. I tried this way : @GrabResolver(root="http://net.sourceforge.nekohtml/nekohtml") in my Groovy code. But it is throwing an error like this…
Ant's
  • 13,545
  • 27
  • 98
  • 148
1 2 3 4 5
6