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.4.0
has only dependency on Groovy 4
core add common extensions:
org.apache.groovy:groovy:4.0.10
org.apache.groovy:groovy-json:4.0.10
org.apache.groovy:groovy-xml:4.0.10
If you need additional Groovy
extension in your scripts ( post, pre, setup, ... ) you must add a dependency to plugin definition, eg:
<project> <build> <plugins> <plugin> <artifactId>maven-invoker-plugin</artifactId> <version>3.5.1</version> ..... <dependencies> <dependency> <groupId>org.apache.groovy</groupId> <artifactId>groovy-yaml</artifactId> <version>3.0.10</version> </dependency> </dependencies> </plugin> </plugins> </build> </project>
NOTICE: In plugin version 3.3.0
only Groovy 4
extensions can be used.