-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathpublish.sbt
54 lines (45 loc) · 1.58 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
ThisBuild / packageOptions += {
val title = name.value
val ver = version.value
val vendor = organization.value
Package.ManifestAttributes(
"Created-By" -> "Simple 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
)
}
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / "arktekk-credentials")
ThisBuild / pomIncludeRepository := { x =>
false
}
ThisBuild / publishTo := {
if (version.value.trim().endsWith("SNAPSHOT")) {
Some(Opts.resolver.sonatypeSnapshots)
} else {
Some(Opts.resolver.sonatypeStaging)
}
}
// Things we care about primarily because Maven Central demands them
ThisBuild / homepage := Some(new URL("http://github.com/arktekk/sbt-aether-deploy/"))
ThisBuild / startYear := Some(2012)
ThisBuild / licenses := Seq(("Apache 2", new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")))
ThisBuild / scmInfo := Some(
ScmInfo(
new URL("http://github.com/arktekk/sbt-aether-deploy"),
"scm:git:git://github.com/arktekk/sbt-aether-deploy.git",
Some("scm:git:[email protected]:arktekk/sbt-aether-deploy.git")
)
)
ThisBuild / developers += Developer(
"hamnis",
"Erlend Hamnaberg",
new URL("http://twitter.com/hamnis")
)