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 2026/10/15 10:04:53 UTC
(jackrabbit-filevault) branch master updated: JCRVLT-799 Allow "check-release-notes-updated" on SNAPSHOT versions as well
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 0acb9e56 JCRVLT-799 Allow "check-release-notes-updated" on SNAPSHOT versions as well
0acb9e56 is described below
commit 0acb9e567d44d7546bbed799e3248ad42311b9bb
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Oct 15 11:52:03 2026 +0200
JCRVLT-799 Allow "check-release-notes-updated" on SNAPSHOT versions as
well
Only consider major.minor.macro for the version check (disregard
qualifier).
Move check to the very beginning of a reactor build (by moving it to
parent project)
---
parent/pom.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
pom.xml | 18 ------------------
2 files changed, 50 insertions(+), 18 deletions(-)
diff --git a/parent/pom.xml b/parent/pom.xml
index dc2ae99d..5cd7798f 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -853,6 +853,56 @@ Bundle-Category: jackrabbit
<spotless.action>apply</spotless.action>
</properties>
</profile>
+ <profile>
+ <id>apache-release</id>
+ <build>
+ <plugins>
+ <!-- this should happen first in an aggregator build, therefore must be executed in this module (only) -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>parse-version</id>
+ <goals>
+ <goal>parse-version</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <propertyPrefix>parsedVersion</propertyPrefix>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <!-- make sure that the RELEASE-NOTES are containing entries for the upcoming release -->
+ <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 (${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}), it needs to be updated prior to each release manually!">
+ <condition>
+ <not>
+ <resourcecontains resource="${basedir}/../RELEASE-NOTES.txt" substring="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}" />
+ </not>
+ </condition>
+ </fail>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
diff --git a/pom.xml b/pom.xml
index 1c025e22..a203a72c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -258,24 +258,6 @@
<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>