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.24
org.apache.groovy:groovy-json:4.0.24
org.apache.groovy:groovy-xml:4.0.24
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.9.0</version>
.....
<dependencies>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-yaml</artifactId>
<version>4.0.24</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
NOTICE: In plugin version 3.3.0
only Groovy 4
extensions can be used.