From 067dcfa23b4709d22cb10b968050d84c23f6e5aa Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 13 Oct 2023 12:25:25 +0200 Subject: [PATCH] move common plugin declaration inside gcube-official profile, just for testing --- pom.xml | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9e4e1d5..c57364d 100644 --- a/pom.xml +++ b/pom.xml @@ -294,6 +294,46 @@ ${repository.snapshots.url} + + + + + org.codehaus.gmaven + groovy-maven-plugin + 2.1.1 + + + process-classes + + execute + + + + tag + + + def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8') + matcher = (fileContents =~ /(?s).\[v$project.version\].*?/) + if (!matcher.find()) { + throw new IllegalArgumentException("Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md") + } + assert matcher[0][1]: "Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md" + + + + + + + org.codehaus.groovy + groovy-all + 3.0.0-beta-3 + pom + + + + + + @@ -1535,7 +1575,7 @@ - +