-
Notifications
You must be signed in to change notification settings - Fork 21
/
publish.sbt
44 lines (35 loc) · 1.19 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
import Publish._
publishVersion := "0.21.0"
ThisBuild / organization := "ru.tinkoff"
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/Tinkoff/phobos"),
"[email protected]:Tinkoff/phobos",
),
)
ThisBuild / developers := List(
Developer(
id = "valentiay",
name = "Alexander Valentinov",
email = "[email protected]",
url = url("https://github.com/valentiay"),
),
)
ThisBuild / description := "Fast xml data binding library"
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/Tinkoff/phobos"))
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credential")