feature/19437 #2

Merged
roberto.cirillo merged 5 commits from feature/19437 into master 2020-07-07 16:56:29 +02:00
1 changed files with 27 additions and 0 deletions
Showing only changes of commit 4b88c3e8a2 - Show all commits

27
pom.xml
View File

@ -924,6 +924,33 @@
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.0</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 CHANGELOG.md")
}
assert matcher[0][1]: "Tag [v$project.version] not found in CHANGELOG.md"
</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>