move common plugin declaration inside gcube-official profile, just for testing

This commit is contained in:
Roberto Cirillo 2023-10-13 12:25:25 +02:00
parent 0315b09ce7
commit 067dcfa23b
1 changed files with 42 additions and 2 deletions

44
pom.xml
View File

@ -294,6 +294,46 @@
<url>${repository.snapshots.url}</url>
</repository>
</distributionManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<defaults>
<name>tag</name>
</defaults>
<source>
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"
</source>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.0-beta-3</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<!-- profile activated with jdk > 8 -->
<profile>
@ -1535,7 +1575,7 @@
</execution>
</executions>
</plugin>
<plugin>
<!--plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.1.1</version>
@ -1568,7 +1608,7 @@
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugin-->
</plugins>
</build>