Skip to content

Commit dbe7ff5

Browse files
authored
Merge pull request #339 from sbt/wip/version2
Make version available to both ThisBuild and projects
2 parents 2e4008e + 98c77f3 commit dbe7ff5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ object CiReleasePlugin extends AutoPlugin {
142142
case Some(cmd) => cmd
143143
case None => backPubVersionToCommand(v)
144144
}
145-
}
145+
},
146+
version ~= dropBackPubCommand
146147
)
147148

148149
override lazy val globalSettings: Seq[Def.Setting[_]] = List(
@@ -218,7 +219,7 @@ object CiReleasePlugin extends AutoPlugin {
218219
)
219220

220221
override lazy val projectSettings: Seq[Def.Setting[_]] = List(
221-
version ~= dropBackPubCommand,
222+
version := (ThisBuild / version).value,
222223
publishConfiguration :=
223224
publishConfiguration.value.withOverwrite(true),
224225
publishLocalConfiguration :=

0 commit comments

Comments
 (0)