-
Notifications
You must be signed in to change notification settings - Fork 2
/
publish.sbt
29 lines (26 loc) · 1.07 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
ThisBuild / organization := "com.elarib"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/elarib/partial-sbt"),
"scm:[email protected]:elarib/partial-sbt.git"
)
)
ThisBuild / developers := List(
Developer(
id = "elarib",
name = "Abdelhamide EL ARIB",
email = "[email protected]",
url = url("http://elarib.com")
)
)
ThisBuild / description := " Apply some sbt task/commands on only the modules/sub-modules (and their reverse dependencies) based on git changes"
ThisBuild / licenses := List("MIT" -> new URL("https://github.com/elarib/partial-sbt/blob/master/LICENSE"))
ThisBuild / homepage := Some(url("https://github.com/elarib/partial-sbt"))
// 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