Groovy version and extensions

NOTICE: Plugin maven-invoker-plugin in versions older than 3.3.0 has dependency on groovy-all artifact from Groovy 2.

Plugin maven-invoker-plugin in version 3.3.0 has only dependency on Groovy 3 core add common extensions:

  • org.codehaus.groovy:groovy:3.0.10
  • org.codehaus.groovy:groovy-json:3.0.10
  • org.codehaus.groovy:groovy-xml:3.0.10

If you need additional Groovy extension in your scripts ( post, pre, setup, ... ) you must add a dependency to plugin definition, eg:


NOTICE: In plugin version 3.3.0 only Groovy 3 extensions can be used.

Groovy 4

Please be noted that in Groovy 4 maven groupId was changed from org.codehaus.groovy to org.apache.groovy.

Plugin has dependency on Groovy 3 artifacts with old groupId, what causes that Groovy 4 can not by used in scripts.

Next version of maven-invoker-plugin can contains Groovy 4 as default.