-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Description
The properties generated by this plugin can't be used directly as those declared in <properties>.
Steps to Reproduce
- Please include the full configuration of the plugin
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>5.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.branch.*$</includeOnlyProperty>
</includeOnlyProperties>
<injectAllReactorProjects>true</injectAllReactorProjects>
<replacementProperties>
<replacementProperty>
<property>git.branch</property>
<propertyOutputSuffix>version</propertyOutputSuffix>
<token>^(feature/.+|dev)$</token>
<value>dev</value>
</replacementProperty>
</replacementProperties>
</configuration>
</plugin>Expected behavior
- To use the generated git.branch.version as property in dependency version.