-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sbt
28 lines (26 loc) · 1015 Bytes
/
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
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/CHANGEME"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/kostaskougios/query"),
"scm:https://github.com/kostaskougios/query.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