Questions tagged [groovy-grape]

85 questions
46
votes
2 answers

Intellij IDEA not importing dependencies from @Grab in Groovy project

I have a groovy script I am working on, which imports dependencies using the @Grab annotation. This script will run within IDEA, and from the command line. However, within the IDE, the imports are shown in red (as unresolvable), and no…
GKelly
  • 3,835
  • 4
  • 38
  • 45
26
votes
4 answers

groovy grape verbose

Is there a way to print Ivy output when using Groovy Grape. when I use Grape, it's just hanging there till finishes downloading all dependencies. I would like to know what it's happening and what it's downloading. Thanks,
Federico
  • 5,438
  • 5
  • 39
  • 47
20
votes
2 answers

Error compiling a Groovy project using @Grab annotation

I'm compiling a Groovy project with Gradle, but I've noticed that when I use the @Grab annotation in my code, I get the following error: $ gradle compile :buildInfo :compileJava UP-TO-DATE :compileGroovy FAILED FAILURE: Build failed with an…
pditommaso
  • 3,186
  • 6
  • 28
  • 43
16
votes
4 answers

Make groovy script grab a jar off the filesystem like grape

Grape seems to work fairly well for adding jars to your classpath. It also does a lot of other things such as fetching and dependency management. e.g. #!/home/robert/bin/groovy import…
Robert Kleemann
  • 241
  • 1
  • 3
  • 8
13
votes
7 answers

Using new Groovy Grape capability results in "unable to resolve class" error

I've tried to use the new Groovy Grape capability in Groovy 1.6-beta-2 but I get an error message; unable to resolve class com.jidesoft.swing.JideSplitButton from the Groovy Console (/opt/groovy/groovy-1.6-beta-2/bin/groovyConsole) when running the…
Bob Herrmann
  • 9,458
  • 10
  • 38
  • 45
8
votes
1 answer

Groovy: How does @Grab inclusion differ from classpath inclusion?

1. Generally, how is @Grape/@Grab inclusion different than classpath inclusion? 2. Specifically, what might cause the following behavior difference? I've got a requirement on xpp3 which I express as: // TestScript.groovy @Grab(group='xpp3',…
Bosh
  • 8,138
  • 11
  • 51
  • 77
7
votes
3 answers

Groovy Grape imports aren't resolved by Eclipse

groovy eclipse plugin version: 1.7.5.xx-20101020-1000-e36-release. import com.jidesoft.swing.JideSplitButton @Grab(group='com.jidesoft', module='jide-oss', version='[2.2.1,2.3.0)') public class TestClassAnnotation { public static String…
atian25
  • 4,166
  • 8
  • 37
  • 60
7
votes
1 answer

Error grabbing Grapes ... unresolved dependency ... not found

UPDATE 8/6: The beefed up logging has shown me that there is an issue deleting the old jar from the cache, which leads to the fatal "not found" error. There are other threads similar to this, but only when someone is locking the file with their…
spozun
  • 872
  • 1
  • 6
  • 14
7
votes
1 answer

Setting location of Grape configuration file

How do you configure Grape to look for a custom configuration file at a location other than the default of ~/.groovy/grapeConfig.xml? Unfortunately the official documentation at http://groovy.codehaus.org/Grape appears to be incomplete and doesn't…
sversch
  • 856
  • 8
  • 22
7
votes
2 answers

Groovy with Grape and AntBuilder classloader problem

I wanted to use groovy for a little ftp script and found this post http://www.hhhhq.org/blog/2009/05/01/ftp-using-groovy-and-ant/ Since there were several dependencies I wanted to use Grape. All dependencies are resolved and present in the cache.…
Leonard Brünings
  • 12,408
  • 1
  • 46
  • 66
5
votes
2 answers

Groovy 1.8 @Grab fails unless I manually call grape resolve

When running a script that is using grape system to @Grab a dependency in the ibiblio repo, it fails till I manually call grape resolve from the command line. After that, it's in the local cache and the script runs fine. Is there some other…
Ted Naleid
  • 26,511
  • 10
  • 70
  • 81
4
votes
1 answer

Unable to download jenkins-core jar using Grapes

I am writing a groovy script and trying to download jenkins-core module using Grapes but I am not able to. @Grapes([ @Grab(group='org.jenkins-ci.main', module='jenkins-core', version='2.9') ]) import jenkins.model.Jenkins It is giving me…
LifeIsButifool
  • 129
  • 2
  • 12
4
votes
4 answers

Include dependencies in Groovy application without repository access

I have a Groovy project (using Eclipse) which makes use of several @Grab statements. This works fine on my development machine. However I need to distribute this application including all its dependencies to other machines which don't have any…
Robert Strauch
  • 12,055
  • 24
  • 120
  • 192
4
votes
1 answer

Error when using groovy-eclipse-plugin and @Grab

Getting the following error when running mvn clean compile on a new system. It works fine on my local (windows) environment. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project…
Mike H
  • 229
  • 5
  • 14
4
votes
2 answers

Groovy + Antbuilder: How to use Grape to with taskdef?

This is related to . I'm trying to dynamically add the maven-ant-tasks jars with Grape, simulating this:
Joshua Davis
  • 3,499
  • 1
  • 26
  • 29
1
2 3 4 5 6