test master #1

Closed
manuele.simi wants to merge 109 commits from master into feature/17809
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>