Skip to content

Commit

Permalink
Take into account the version when releasing in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed May 14, 2024
1 parent fc899a6 commit 29083b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion project/RepublishPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ object RepublishPlugin extends AutoPlugin {
}
case class ResolvedArtifacts(id: SimpleModuleId, jar: File, pom: File)

val isRelease = sys.env.get("RELEASEBUILD") == Some("yes")

override val projectSettings: Seq[Def.Setting[_]] = Def.settings(
republishLocalResolved / republishProjectRefs := {
val proj = thisProjectRef.value
Expand Down Expand Up @@ -87,7 +89,10 @@ object RepublishPlugin extends AutoPlugin {

localResolved.foreach({ resolved =>
val simpleId = resolved.id
evicted += simpleId.copy(revision = simpleId.revision + "-nonbootstrapped")
if(isRelease)
evicted += simpleId.copy(revision = simpleId.revision + "-bin-nonbootstrapped")
else
evicted += simpleId.copy(revision = simpleId.revision + "-nonbootstrapped")
found(simpleId) = resolved
})

Expand Down

0 comments on commit 29083b7

Please sign in to comment.