-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpublish.sbt
More file actions
37 lines (30 loc) · 1.1 KB
/
publish.sbt
File metadata and controls
37 lines (30 loc) · 1.1 KB
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
37
ThisBuild / organization := "com.adform"
ThisBuild / organizationName := "Adform"
ThisBuild / organizationHomepage := Some(url("https://www.adform.com"))
import BuildSettings._
ThisBuild / startYear := Some(2020)
ThisBuild / description := "Stream Loader: load data from Kafka into multiple backends"
ThisBuild / homepage := Some(url(gitRepoUrl))
ThisBuild / licenses := List(
"MPL-2.0" -> url("http://mozilla.org/MPL/2.0/")
)
ThisBuild / developers := List(
Developer(
id = "sauliusvl",
name = "Saulius Valatka",
email = "saulius.vl@gmail.com",
url = url("https://github.com/sauliusvl")
)
)
ThisBuild / scmInfo := Some(
ScmInfo(url(gitRepoUrl), s"scm:git:git@github.com:$gitRepo.git")
)
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
// Use Central Portal instead of OSSRH
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}