Maven Release Version Date Policy

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

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

win.sa4zet
ArtifactId

ArtifactId

maven-release-version-date-policy
Last Version

Last Version

2020.7.20.2
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

https://github.com/sa4zet/maven-release-version-date-policy
Source Code Management

Source Code Management

https://github.com/sa4zet/maven-release-version-date-policy

Download maven-release-version-date-policy

How to add to project

<!-- https://jarcasting.com/artifacts/win.sa4zet/maven-release-version-date-policy/ -->
<dependency>
    <groupId>win.sa4zet</groupId>
    <artifactId>maven-release-version-date-policy</artifactId>
    <version>2020.7.20.2</version>
</dependency>
// https://jarcasting.com/artifacts/win.sa4zet/maven-release-version-date-policy/
implementation 'win.sa4zet:maven-release-version-date-policy:2020.7.20.2'
// https://jarcasting.com/artifacts/win.sa4zet/maven-release-version-date-policy/
implementation ("win.sa4zet:maven-release-version-date-policy:2020.7.20.2")
'win.sa4zet:maven-release-version-date-policy:jar:2020.7.20.2'
<dependency org="win.sa4zet" name="maven-release-version-date-policy" rev="2020.7.20.2">
  <artifact name="maven-release-version-date-policy" type="jar" />
</dependency>
@Grapes(
@Grab(group='win.sa4zet', module='maven-release-version-date-policy', version='2020.7.20.2')
)
libraryDependencies += "win.sa4zet" % "maven-release-version-date-policy" % "2020.7.20.2"
[win.sa4zet/maven-release-version-date-policy "2020.7.20.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.maven.release : maven-release-api jar 3.0.0-M1

test (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.6.2
org.junit.jupiter : junit-jupiter-params jar 5.6.2

Project Modules

There are no modules declared in this project.

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>

Versions

Version
2020.7.20.2
2020.7.20.1