Home > Groovy > GMaven plugin – depends on Groovy 1.6.0 instead of 1.6.3!

GMaven plugin – depends on Groovy 1.6.0 instead of 1.6.3!

GMaven plugin is nice but latest 1.0 version depends on Groovy 1.6.0 which lacks java.lang.String.find() accepting String regex and Closure.

So one needs to configure this plugin as follows:

<plugin>
    <groupId>org.codehaus.groovy.maven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <version>1.0</version>
    <configuration>
        <scriptpath>
            <element>${project.basedir}</element>
        </scriptpath>
    </configuration>
    <dependencies>
        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- To make sure latest Groovy version is used -->
        <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>1.6.3</version>
        </dependency>
    </dependencies>
</plugin>

Note that I also set ${project.basedir} as scripts directory, more options are available here.

Advertisements
Categories: Groovy Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: