-
Notifications
You must be signed in to change notification settings - Fork 0
/
repo.sbt
29 lines (22 loc) · 1.04 KB
/
repo.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 / organizationName := "Greenfossil Pte Ltd"
ThisBuild / organizationHomepage := Some(url("https://greenfossil.com/"))
ThisBuild / developers := List(
Developer("greenfossil", "Greenfossil Pte Ltd", "devadmin@greenfossil.com", url("https://github.com/Greenfossil"))
)
ThisBuild / licenses := List(
"Apache 2" -> new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")
)
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
// For accounts created after Feb 2021:
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")
}
val username = sys.env.getOrElse("PUBLISH_USER", "")
val password = sys.env.getOrElse("PUBLISH_PASSWORD", "")
ThisBuild / credentials += Credentials(
"Sonatype Nexus Repository Manager", "s01.oss.sonatype.org", username, password
)
ThisBuild / publishMavenStyle := true