You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2022/12/01 09:41:01 UTC
[jackrabbit-filevault] branch master updated: JCRVLT-652 enforce manual update of release-notes.txt prior each release
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/master by this push:
new 46b8ac1b JCRVLT-652 enforce manual update of release-notes.txt prior each release
46b8ac1b is described below
commit 46b8ac1bd9cf5ddf9c441d9ef2283417d6431f7e
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Dec 1 10:40:53 2022 +0100
JCRVLT-652 enforce manual update of release-notes.txt prior each release
---
pom.xml | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ea0eee62..d6873019 100644
--- a/pom.xml
+++ b/pom.xml
@@ -275,11 +275,30 @@
</execution>
</executions>
</plugin>
- <!-- JCR-2455: Automatic staging of non-Maven release artifacts -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
+ <id>check-release-notes-updated</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <target>
+ <fail message="RELEASE-NOTES.txt doesn't contain the version to be released (${project.version}), it needs to be updated prior to each release manually!">
+ <condition>
+ <not>
+ <resourcecontains resource="${basedir}/RELEASE-NOTES.txt" substring="${project.version}"/>
+ </not>
+ </condition>
+ </fail>
+ </target>
+ </configuration>
+ </execution>
+ <!-- JCR-2455: Automatic staging of non-Maven release artifacts -->
+ <execution>
+ <id>prepare-staging-in-asf-dist</id>
<goals>
<goal>run</goal>
</goals>