-
Notifications
You must be signed in to change notification settings - Fork 5
/
publish.sbt
85 lines (70 loc) · 1.84 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
overridePublishSignedSettings
publishTo := {
if (isSnapshot.value) {
Some(Opts.resolver.sonatypeSnapshots)
} else {
Some(Opts.resolver.sonatypeStaging)
}
}
pomIncludeRepository := { x =>
false
}
packageOptions += {
val title = name.value
val ver = version.value
val vendor = organization.value
Package.ManifestAttributes(
"Created-By" -> "Scala Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Version" -> ver,
"Specification-Vendor" -> vendor,
"Implementation-Title" -> title,
"Implementation-Version" -> ver,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> vendor
)
}
credentials ++= Seq(
Credentials(Path.userHome / ".sbt" / ".credentials")
)
homepage := Some(url("https://github.com/scalabin-no/http4s-directives"))
startYear := Some(2017)
licenses := Seq(
"Apache2" -> url("https://github.com/scalabin-no/http4s-directives/blob/master/LICENSE.txt")
)
publishMavenStyle := true
Test/publishArtifact := false
pomIncludeRepository := { _ =>
false
}
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
scmInfo := Some(
ScmInfo(
new URL("https://github.com/scalabin-no/http4s-directives"),
"scm:git:[email protected]:scalabin-no/http4s-directives.git",
Some("scm:git:[email protected]:scalabin-no/http4s-directives.git")
)
)
developers ++= List(
Developer(
"hamnis",
"Erlend Hamnaberg",
new URL("http://twitter.com/hamnis")
),
Developer(
"kareblak",
"Kåre Blakstad",
"",
null
),
Developer(
"ingarabr",
"Ingar Abrahamsen",
"",
new URL("http://twitter.com/ingarabr")
)
)