This is an automated email from the ASF dual-hosted git repository. vy pushed a commit to branch release/10.1.0 in repository https://gitbox.apache.org/repos/asf/logging-parent.git
commit 7a7eae733ce39b9ac8a78a4a67419651eb18e43e Author: Volkan Yazıcı <[email protected]> AuthorDate: Tue Sep 26 13:23:10 2023 +0200 Add `parsedVersion` property to `constants-tmpl-adoc` profile --- pom.xml | 22 ++++++++++++++++++++++ src/site/_constants.adoc | 1 + src/site/_constants.tmpl.adoc | 1 + 3 files changed, 24 insertions(+) diff --git a/pom.xml b/pom.xml index 3c20877..458a2d6 100644 --- a/pom.xml +++ b/pom.xml @@ -122,6 +122,7 @@ <!-- plugin versions --> <beanshell-maven-plugin.version>1.4</beanshell-maven-plugin.version> <bnd-maven-plugin.version>6.4.0</bnd-maven-plugin.version> + <build-helper-maven-plugin.version>3.4.0</build-helper-maven-plugin.version> <error-prone.version>2.22.0</error-prone.version> <findsecbugs-plugin.version>1.12.0</findsecbugs-plugin.version> <flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version> @@ -223,6 +224,12 @@ <version>${bnd-maven-plugin.version}</version> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>${build-helper-maven-plugin.version}</version> + </plugin> + </plugins> </pluginManagement> @@ -977,6 +984,21 @@ <build> <plugins> + <!-- populate the `parsedVersion` property --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>parse-version</id> + <goals> + <goal>parse-version</goal> + </goals> + <phase>validate</phase> + </execution> + </executions> + </plugin> + <!-- copy `src/site/_constants.tmpl.adoc` to `target/constants-adoc/_constants.adoc` --> <plugin> <groupId>org.apache.maven.plugins</groupId> diff --git a/src/site/_constants.adoc b/src/site/_constants.adoc index 3768cad..d206630 100644 --- a/src/site/_constants.adoc +++ b/src/site/_constants.adoc @@ -35,6 +35,7 @@ :project-github-url: https://github.com/apache/logging-parent :project-version: 10.1.0-SNAPSHOT +:project-version-major: 10 :project-name: Logging Parent :project-id: logging-parent :java-target-version: 8 diff --git a/src/site/_constants.tmpl.adoc b/src/site/_constants.tmpl.adoc index 6e88ae8..2609b6f 100644 --- a/src/site/_constants.tmpl.adoc +++ b/src/site/_constants.tmpl.adoc @@ -35,6 +35,7 @@ :project-github-url: ${scm.url} :project-version: ${project.version} +:project-version-major: ${parsedVersion.majorVersion} :project-name: Logging Parent :project-id: logging-parent :java-target-version: ${maven.compiler.target}
