Skip to content

sa4zet/maven-release-version-date-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

maven-release-version-date-policy

Release version policy for use with Maven's maven-release-plugin, specifies a version scheme: year.month.day.minor

Where year.month.day is the date when the mvn release command executed. Like: 2020.7.20

The minor is a number that tells the mvn release command how many times executed on the same day. If you released 4 times at 2020.7.20 on a same day, then it will be: 2020.7.20.4

Usage

Maven

<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven.release.plugin.version}</version>
<configuration>
  <projectVersionPolicyId>date</projectVersionPolicyId>
  <tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
<dependencies>
  <dependency>
    <groupId>win.sa4zet</groupId>
    <artifactId>maven-release-version-date-policy</artifactId>
    <version>2020.7.20.1</version>
  </dependency>
</dependencies>
</plugin>

About

Maven release version date policy

Topics

Resources

License

Stars

Watchers

Forks

Languages