From 98c77f3a919d609e5aab12086de1f4de94d24b83 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Wed, 18 Dec 2024 23:32:55 -0500 Subject: [PATCH] Make version available to both ThisBuild and projects --- plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala b/plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala index 3996207..127da11 100644 --- a/plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala +++ b/plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala @@ -142,7 +142,8 @@ object CiReleasePlugin extends AutoPlugin { case Some(cmd) => cmd case None => backPubVersionToCommand(v) } - } + }, + version ~= dropBackPubCommand ) override lazy val globalSettings: Seq[Def.Setting[_]] = List( @@ -218,7 +219,7 @@ object CiReleasePlugin extends AutoPlugin { ) override lazy val projectSettings: Seq[Def.Setting[_]] = List( - version ~= dropBackPubCommand, + version := (ThisBuild / version).value, publishConfiguration := publishConfiguration.value.withOverwrite(true), publishLocalConfiguration :=