-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpublish.sbt
36 lines (30 loc) · 1.22 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
publishTo := sonatypePublishToBundle.value
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "com.github.trex-paxos"
ThisBuild / organizationName := "com.github.trex-paxos"
ThisBuild / organizationHomepage := Some(url("https://github.com/trex-paxos/trex"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/trex-paxos/trex"),
"scm:git:github.com/trex-paxos/trex.git"
)
)
ThisBuild / developers := List(
Developer(
id = "simbo1905",
name = "Simon Massey",
email = "simbo1905@60hertz.com",
url = url("https://simbo1905.wordpress.com")
)
)
ThisBuild / description := "Embeddable multi-Paxos For The JVM"
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/trex-paxos/trex"))
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true