-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sbt
26 lines (24 loc) · 1.1 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
ThisBuild / publishMavenStyle := true
ThisBuild / Test / publishArtifact := false
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / homepage := Some(url("https://github.com/kostaskougios/terminal21-restapi"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/kostaskougios/terminal21-restapi"),
"scm:https://github.com/kostaskougios/terminal21-restapi.git"
)
)
ThisBuild / developers := List(
Developer(id = "kostaskougios", name = "Kostas Kougios", email = "kostas.kougios@googlemail.com", url = url("https://github.com/kostaskougios"))
)
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
// disable publishing the root
publish := {}
publishLocal := {}
publishArtifact := false