Archive for April, 2010

@Grab Support in IntelliJ IDEA

Recently I wrote about the great Grape stuff in Groovy for use when deploying groovy scripts. Just wanted to give a quick view on what IDEA can do for you with some of the latest JetGroovy support for @Grab annotations. With my projects I use maven for building, and as such, I have my dependencies [...]

April 21, 2010 · polesen · No Comments
Tags: , , , ,  Â· Posted in: Programming, Tools

Groovy Grape – Adding Dependencies to Root ClassLoader

When using grape in groovy to download dependencies and add to classpath, they will by default be added to the GroovyClassLoader when the script is run. This can be a problem, if these dependencies needs to be uses from classes higher in the classloader hierarchy. One common example would be when loading JDBC drivers, because [...]

April 19, 2010 · polesen · 4 Comments
Tags: , , ,  Â· Posted in: Programming

Easy Groovy Script Deployment with Grape

You can use groovy for lots of stuff, but many of us use it for simple, one-off administration tasks like upgrading a database schema, doing some reporting or other small tasks. Given the absolute great integration of groovy into the Java platform, a groovy script quickly ends up utilizing a bunch of jar dependencies from [...]

April 18, 2010 · polesen · 2 Comments
Tags: , , , ,  Â· Posted in: Programming