Skip to content

Commit

Permalink
Merge pull request #339 from sbt/wip/version2
Browse files Browse the repository at this point in the history
Make version available to both ThisBuild and projects
  • Loading branch information
eed3si9n authored Dec 19, 2024
2 parents 2e4008e + 98c77f3 commit dbe7ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 :=
Expand Down

0 comments on commit dbe7ff5

Please sign in to comment.