-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.sbt
46 lines (37 loc) · 1.17 KB
/
publish.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Publish._
publishVersion := "0.1.0"
ThisBuild / organization := "dev.susliko"
ThisBuild / version := {
val branch = git.gitCurrentBranch.value
if (branch == "master") publishVersion.value
else s"${publishVersion.value}-$branch-SNAPSHOT"
}
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo :=
(if (!isSnapshot.value) {
sonatypePublishToBundle.value
} else {
Some(Opts.resolver.sonatypeSnapshots)
})
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/susliko/lotos"),
"[email protected]:susliko/lotos"
)
)
ThisBuild / developers := List(
Developer(
id = "susliko",
name = "Vasiliy Morkovkin",
email = "[email protected]",
url = url("https://github.com/susliko")
)
)
ThisBuild / description := "Library for testing concurrent data structures"
ThisBuild / licenses := List("MIT" -> new URL("https://opensource.org/licenses/MIT"))
ThisBuild / homepage := Some(url("https://github.com/susliko/lotos"))
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ =>
false
}
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credential")