|
| 1 | + ------ |
| 2 | + Groovy version and extensions |
| 3 | + ------ |
| 4 | + Slawomir Jaranowski |
| 5 | + ------ |
| 6 | + 2022-05-22 |
| 7 | + ------ |
| 8 | + |
| 9 | + ~~ Licensed to the Apache Software Foundation (ASF) under one |
| 10 | + ~~ or more contributor license agreements. See the NOTICE file |
| 11 | + ~~ distributed with this work for additional information |
| 12 | + ~~ regarding copyright ownership. The ASF licenses this file |
| 13 | + ~~ to you under the Apache License, Version 2.0 (the |
| 14 | + ~~ "License"); you may not use this file except in compliance |
| 15 | + ~~ with the License. You may obtain a copy of the License at |
| 16 | + ~~ |
| 17 | + ~~ http://www.apache.org/licenses/LICENSE-2.0 |
| 18 | + ~~ |
| 19 | + ~~ Unless required by applicable law or agreed to in writing, |
| 20 | + ~~ software distributed under the License is distributed on an |
| 21 | + ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 22 | + ~~ KIND, either express or implied. See the License for the |
| 23 | + ~~ specific language governing permissions and limitations |
| 24 | + ~~ under the License. |
| 25 | + |
| 26 | + ~~ NOTE: For help with the syntax of this file, see: |
| 27 | + ~~ http://maven.apache.org/doxia/references/apt-format.html |
| 28 | + |
| 29 | +Groovy version and extensions |
| 30 | + |
| 31 | + <<NOTICE>>: Plugin <<<maven-invoker-plugin>>> in versions older than <<<3.3.0>>> has dependency |
| 32 | + on <<<groovy-all>>> artifact from <<<Groovy 2>>>. |
| 33 | + |
| 34 | + Plugin <<<maven-invoker-plugin>>> in version <<<3.3.0>>> has only dependency on <<<Groovy 3>>> core add common extensions: |
| 35 | + |
| 36 | + * <<<org.codehaus.groovy:groovy:3.0.10>>> |
| 37 | + |
| 38 | + * <<<org.codehaus.groovy:groovy-json:3.0.10>>> |
| 39 | + |
| 40 | + * <<<org.codehaus.groovy:groovy-xml:3.0.10>>> |
| 41 | + |
| 42 | + [] |
| 43 | + |
| 44 | + If you need additional <<<Groovy>>> extension in your scripts ( post, pre, setup, ... ) |
| 45 | + you must add a dependency to plugin definition, eg: |
| 46 | + |
| 47 | ++------------------ |
| 48 | +<project> |
| 49 | + <build> |
| 50 | + <plugins> |
| 51 | + <plugin> |
| 52 | + <artifactId>maven-invoker-plugin</artifactId> |
| 53 | + <version>${project.version}</version> |
| 54 | + ..... |
| 55 | + <dependencies> |
| 56 | + <dependency> |
| 57 | + <groupId>org.codehaus.groovy</groupId> |
| 58 | + <artifactId>groovy-yaml</artifactId> |
| 59 | + <version>3.0.10</version> |
| 60 | + </dependency> |
| 61 | + </dependencies> |
| 62 | + </plugin> |
| 63 | + </plugins> |
| 64 | + </build> |
| 65 | +</project> |
| 66 | ++------------------ |
| 67 | + |
| 68 | + <<NOTICE>>: In plugin version <<<3.3.0>>> only <<<Groovy 3>>> extensions can be used. |
| 69 | + |
| 70 | +Groovy 4 |
| 71 | + |
| 72 | + Please be noted that in <<<Groovy 4>>> maven <<<groupId>>> was changed |
| 73 | + from <<org.codehaus.groovy>> to <<org.apache.groovy>>. |
| 74 | + |
| 75 | + Plugin has dependency on <<<Groovy 3>>> artifacts with old <<<groupId>>>, |
| 76 | + what causes that <<<Groovy 4>>> can not by used in scripts. |
| 77 | + |
| 78 | + Next version of <<<maven-invoker-plugin>>> can contains <<<Groovy 4>>> as default. |
0 commit comments