Skip to content

Commit

Permalink
Scope version to project
Browse files Browse the repository at this point in the history
**Problem**
Back publishing doesn't work because `version`
is scoped to build-level but GitPlugin has an entry at project level.

**Solution**
This moves version to project level.
  • Loading branch information
eed3si9n committed Dec 19, 2024
1 parent 2bf54be commit 2b0f4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ 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 @@ -219,6 +218,7 @@ object CiReleasePlugin extends AutoPlugin {
)

override lazy val projectSettings: Seq[Def.Setting[_]] = List(
version ~= dropBackPubCommand,
publishConfiguration :=
publishConfiguration.value.withOverwrite(true),
publishLocalConfiguration :=
Expand Down

0 comments on commit 2b0f4fa

Please sign in to comment.