forked from backchatio/hookup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
82 lines (65 loc) · 2.54 KB
/
build.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
import xml.Group
// import scalariform.formatter.preferences._
publishMavenStyle := true
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := { x => false }
packageOptions <<= (packageOptions, name, version, organization) map {
(opts, title, version, vendor) =>
opts :+ Package.ManifestAttributes(
"Created-By" -> "Simple Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Vendor" -> "Mojolly Ltd.",
"Specification-Version" -> version,
"Implementation-Title" -> title,
"Implementation-Version" -> version,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> "Mojolly Ltd.",
"Implementation-Url" -> "https://backchat.io"
)
}
homepage := Some(url("https://backchatio.github.com/hookup"))
startYear := Some(2012)
licenses := Seq(("MIT", url("http://github.com/backchatio/hookup/raw/HEAD/LICENSE")))
pomExtra <<= (pomExtra, name, description) {(pom, name, desc) => pom ++ Group(
<scm>
<connection>scm:git:git://github.com/backchatio/hookup.git</connection>
<developerConnection>scm:git:[email protected]:backchatio/hookup.git</developerConnection>
<url>https://github.com/backchatio/hookup.git</url>
</scm>
<developers>
<developer>
<id>casualjim</id>
<name>Ivan Porto Carrero</name>
<url>http://flanders.co.nz/</url>
</developer>
</developers>
)}
//seq(scalariformSettings: _*)
//
//ScalariformKeys.preferences :=
// (FormattingPreferences()
// setPreference(IndentSpaces, 2)
// setPreference(AlignParameters, false)
// setPreference(AlignSingleLineCaseStatements, true)
// setPreference(DoubleIndentClassDeclaration, true)
// setPreference(RewriteArrowSymbols, true)
// setPreference(PreserveSpaceBeforeArguments, true)
// setPreference(IndentWithTabs, false))
//
//(excludeFilter in ScalariformKeys.format) <<= excludeFilter(_ || "*Spec.scala")
// seq(buildInfoSettings: _*)
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
// buildInfoPackage := "io.backchat.hookup"
// buildInfoPackage := organization
buildInfoPackage <<= organization