From 7aed59a92048e865505df191293397277c8eb216 Mon Sep 17 00:00:00 2001 From: slivkamiro Date: Tue, 15 Oct 2024 07:37:39 +0100 Subject: [PATCH] chore: fix default format (#5) --- README.md | 2 +- src/main/scala/me/slivkamiro/calver/CalverPlugin.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 573023f..2bd85fe 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ addSbtPlugin("io.github.slivkamiro" % "sbt-calver" % "x.y.z") Supported configuration options: -* `versionFormat` - changes how the date is formatted in version , defaults to `YY.0M` which produces version like `YY.0M.patch` +* `versionFormat` - changes how the date is formatted in version , defaults to `YY.MM` which produces version like `YY.MM.patch` Assuming default `versionFormat` your version will be set to: diff --git a/src/main/scala/me/slivkamiro/calver/CalverPlugin.scala b/src/main/scala/me/slivkamiro/calver/CalverPlugin.scala index a1d08f2..d4d73c3 100644 --- a/src/main/scala/me/slivkamiro/calver/CalverPlugin.scala +++ b/src/main/scala/me/slivkamiro/calver/CalverPlugin.scala @@ -26,7 +26,7 @@ object CalverPlugin extends AutoPlugin { import autoImport._ override def buildSettings: Seq[Setting[_]] = Seq( - versionFormat := "YY.0M", + versionFormat := "YY.MM", calverDate := new Date, version := getVersion.value( buildBase.value,