File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Groovy for builds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy for builds" Watch "Groovy for builds" New topic
Author

Groovy for builds

Uma Rk
Greenhorn

Joined: Dec 11, 2006
Posts: 3
We use Maven 2.x for our project builds. Maven plugins are
implemented in Java (in Maven 1.0.2 we had the option of
defining them in Jelly).

Could I use Groovy to define my Maven plugins? I would
prefer this, since its easier to script a build than to
implement it in Java.

Thanks,

U
Tug Wilson
Ranch Hand

Joined: Dec 12, 2006
Posts: 33
You can use groovy anywhere you can use Java. Groovy classes are Java classes as far as the JVM is concerned (you can even use a decompiler to turn your compiled Govvy classes into Java)
Clifton Craig
Ranch Hand

Joined: May 26, 2006
Posts: 103
Uma,

I have a post on my bloga post on my blog where I describe exactly that. There is some little known Groovy M2 plugins that allow you to compile Groovy code directly from Maven2 and also allow you to use Groovy to natively define M2 plugins.
[ December 12, 2006: Message edited by: Clifton Craig ]

Holla at me...<br /><a href="http://codeforfun.wordpress.com" target="_blank" rel="nofollow">http://codeforfun.wordpress.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Groovy for builds