Skip to content

Commit 828689a

Browse files
author
JeanMarc van Leerdam
committed
Set deploymentname
1 parent f176979 commit 828689a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.sbt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import java.util.UUID
12

23
lazy val root = project.in(file("."))
34
.withId("sbt-findsecbugs")
@@ -84,3 +85,11 @@ ThisBuild / publishTo := {
8485
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
8586
else localStaging.value
8687
}
88+
89+
ThisBuild / sonaDeploymentName := {
90+
val o = organization.value
91+
val n = name.value
92+
val v = version.value
93+
val uuid = UUID.randomUUID().toString.take(8)
94+
s"$o:$n:$v:$uuid"
95+
}

0 commit comments

Comments
 (0)