This repository has been archived by the owner on Nov 24, 2017. It is now read-only.
forked from djspiewak/anti-xml
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpublish.sbt
75 lines (66 loc) · 2.22 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
publishTo <<= (version) apply {
(v: String) => if (v.trim().endsWith("SNAPSHOT")) Some(Opts.resolver.sonatypeSnapshots) else Some(Opts.resolver.sonatypeStaging)
}
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
homepage := Some(new URL("http://anti-xml.org"))
startYear := Some(2011)
licenses := Seq(("BSD", new URL("https://github.com/arktekk/anti-xml/blob/master/LICENSE.rst")))
pomIncludeRepository := {
x => false
}
packageOptions <+= (name, version, organization) map { (title, version, vendor) =>
Package.ManifestAttributes(
"Created-By" -> "Simple Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Version" -> version,
"Specification-Vendor" -> vendor,
"Implementation-Title" -> title,
"Implementation-Version" -> version,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> vendor
)
}
pomExtra <<= (pomExtra) { (pom) => pom ++ xml.Group(
<scm>
<url>http://github.com/arktekk/anti-xml</url>
<connection>scm:git:git://github.com/arktekk/anti-xml.git</connection>
<developerConnection>scm:git:[email protected]:arktekk/anti-xml.git</developerConnection>
</scm>
<developers>
<developer>
<id>djspiewak</id>
<name>Daniel Spiewak</name>
<url>http://twitter.com/djspiewak</url>
</developer>
<developer>
<name>Erlend Hamnaberg</name>
<url>http://twitter.com/hamnis</url>
</developer>
</developers>
<contributors>
<contributor>
<name>Trygve Laugstøl</name>
<url>http://twitter.com/trygvis</url>
</contributor>
<contributor>
<name>Daniel Beskin</name>
</contributor>
<contributor>
<name>Joshua Arnold</name>
</contributor>
<contributor>
<name>Martin Kneissl</name>
</contributor>
<contributor>
<name>Erik Engbrecht</name>
</contributor>
<contributor>
<name>Heikki Vesalainen</name>
</contributor>
</contributors>
)
}
useGpg := true
aetherPublishSignedSettings