From c5a389dd437d036189276a58dc19bc6fb0785c1c Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sat, 21 May 2022 21:52:55 +0200 Subject: [PATCH] [MINVOKER-304] Use only common groovy modules - xml, json - changed dependencies in pom - added documentation about groovy versions --- pom.xml | 39 +++++------ src/it/script-classpath-duplicates/pom.xml | 2 +- src/site/apt/groovy-version.apt.vm | 78 ++++++++++++++++++++++ src/site/site.xml | 1 + 4 files changed, 95 insertions(+), 25 deletions(-) create mode 100644 src/site/apt/groovy-version.apt.vm diff --git a/pom.xml b/pom.xml index 3d836b13..50469995 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,6 @@ under the License. bsh 2.0b6 org.codehaus.groovy - groovy-all 3.0.10 2.22.2 2021-02-14T00:04:14Z @@ -137,7 +136,7 @@ under the License. maven-script-interpreter 1.3 - + org.codehaus.groovy groovy @@ -163,32 +162,24 @@ under the License. ${beanshell-version} runtime + ${groovy-groupId} - ${groovy-artifactId} + groovy + ${groovy-version} + runtime + + + ${groovy-groupId} + groovy-json + ${groovy-version} + runtime + + + ${groovy-groupId} + groovy-xml ${groovy-version} - pom runtime - - - org.codehaus.groovy - groovy-groovysh - - - - org.codehaus.groovy - groovy-test - - - org.codehaus.groovy - groovy-test-junit5 - - - org.codehaus.groovy - groovy-testng - - - diff --git a/src/it/script-classpath-duplicates/pom.xml b/src/it/script-classpath-duplicates/pom.xml index 6841ab69..1ba8f1d0 100644 --- a/src/it/script-classpath-duplicates/pom.xml +++ b/src/it/script-classpath-duplicates/pom.xml @@ -42,7 +42,7 @@ under the License. @groovy-groupId@ - @groovy-artifactId@ + groovy @groovy-version@ pom test diff --git a/src/site/apt/groovy-version.apt.vm b/src/site/apt/groovy-version.apt.vm new file mode 100644 index 00000000..fd3dc9ef --- /dev/null +++ b/src/site/apt/groovy-version.apt.vm @@ -0,0 +1,78 @@ + ------ + Groovy version and extensions + ------ + Slawomir Jaranowski + ------ + 2022-05-22 + ------ + + ~~ Licensed to the Apache Software Foundation (ASF) under one + ~~ or more contributor license agreements. See the NOTICE file + ~~ distributed with this work for additional information + ~~ regarding copyright ownership. The ASF licenses this file + ~~ to you under the Apache License, Version 2.0 (the + ~~ "License"); you may not use this file except in compliance + ~~ with the License. You may obtain a copy of the License at + ~~ + ~~ http://www.apache.org/licenses/LICENSE-2.0 + ~~ + ~~ Unless required by applicable law or agreed to in writing, + ~~ software distributed under the License is distributed on an + ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~~ KIND, either express or implied. See the License for the + ~~ specific language governing permissions and limitations + ~~ under the License. + + ~~ NOTE: For help with the syntax of this file, see: + ~~ http://maven.apache.org/doxia/references/apt-format.html + +Groovy version and extensions + + <>: Plugin <<>> in versions older than <<<3.3.0>>> has dependency + on <<>> artifact from <<>>. + + Plugin <<>> in version <<<3.3.0>>> has only dependency on <<>> core add common extensions: + + * <<>> + + * <<>> + + * <<>> + + [] + + If you need additional <<>> extension in your scripts ( post, pre, setup, ... ) + you must add a dependency to plugin definition, eg: + ++------------------ + + + + + maven-invoker-plugin + ${project.version} + ..... + + + org.codehaus.groovy + groovy-yaml + 3.0.10 + + + + + + ++------------------ + + <>: In plugin version <<<3.3.0>>> only <<>> extensions can be used. + +Groovy 4 + + Please be noted that in <<>> maven <<>> was changed + from <> to <>. + + Plugin has dependency on <<>> artifacts with old <<>>, + what causes that <<>> can not by used in scripts. + + Next version of <<>> can contains <<>> as default. diff --git a/src/site/site.xml b/src/site/site.xml index 548d2526..1b34bc66 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -27,6 +27,7 @@ under the License. +