Skip to content

Commit 29083b7

Browse files
committed
Take into account the version when releasing in the CI
1 parent fc899a6 commit 29083b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: project/RepublishPlugin.scala

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ object RepublishPlugin extends AutoPlugin {
3636
}
3737
case class ResolvedArtifacts(id: SimpleModuleId, jar: File, pom: File)
3838

39+
val isRelease = sys.env.get("RELEASEBUILD") == Some("yes")
40+
3941
override val projectSettings: Seq[Def.Setting[_]] = Def.settings(
4042
republishLocalResolved / republishProjectRefs := {
4143
val proj = thisProjectRef.value
@@ -87,7 +89,10 @@ object RepublishPlugin extends AutoPlugin {
8789

8890
localResolved.foreach({ resolved =>
8991
val simpleId = resolved.id
90-
evicted += simpleId.copy(revision = simpleId.revision + "-nonbootstrapped")
92+
if(isRelease)
93+
evicted += simpleId.copy(revision = simpleId.revision + "-bin-nonbootstrapped")
94+
else
95+
evicted += simpleId.copy(revision = simpleId.revision + "-nonbootstrapped")
9196
found(simpleId) = resolved
9297
})
9398

0 commit comments

Comments
 (0)