This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
89 lines (64 loc) · 2.65 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
83
84
85
86
87
88
89
// Unit tests (invoke with command `test`) do not depend on MongoDB running.
//
// Integration tests (invoke with command `it:test`) depend on
// MongoDB running. By default, they connect to `localhost`, database `test`
// and use collection `test` (the tests will drop it!).
//
// You may change the defaults in src/it/scala/ExampleFixture.scala
import com.jsuereth.sbtsite.SiteKeys
import ls.Plugin._
organization := "com.osinka.subset"
name := "subset"
homepage := Some(url("https://github.com/osinka/subset"))
startYear := Some(2011)
scalaVersion := "2.9.2"
licenses += "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
crossScalaVersions := Seq("2.9.1", "2.9.2", "2.10.0")
organizationName := "Osinka"
description := """Subset: typed MongoDB fields and query/update builders"""
scalacOptions += "-unchecked"
parallelExecution in IntegrationTest := false
libraryDependencies ++= Seq(
"org.mongodb" % "mongo-java-driver" % "2.11.2",
"joda-time" % "joda-time" % "1.6.2" % "optional",
"org.scalatest" % "scalatest" % "1.8" % "it,test" cross CrossVersion.full,
"junit" % "junit" % "4.11" % "it,test"
)
seq(site.settings:_*)
site.addMappingsToSiteDir(mappings in packageDoc in Compile, "api")
SiteKeys.siteMappings <<=
(SiteKeys.siteMappings, PamfletKeys.write, PamfletKeys.output) map { (mappings, _, dir) =>
mappings ++ (dir ** "*.*" x relativeTo(dir))
}
seq(ghpages.settings:_*)
git.remoteRepo := "[email protected]:osinka/subset.git"
credentials += Credentials(Path.userHome / ".ivy2" / "credentials_sonatype")
pomIncludeRepository := { x => false }
publishTo <<= (version) { version: String =>
if (version.trim endsWith "SNAPSHOT")
Some(Resolver.file("file", file(Path.userHome.absolutePath+"/.m2/repository")))
else
Some("Sonatype OSS Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/")
}
seq(lsSettings: _*)
(LsKeys.tags in LsKeys.lsync) := Seq("mongo", "mongodb", "bson", "persistence", "document")
(LsKeys.docsUrl in LsKeys.lsync) := Some(url("http://osinka.github.io/subset/Subset.html"))
pomExtra := <xml:group>
<developers>
<developer>
<id>alaz</id>
<email>[email protected]</email>
<name>Alexander Azarov</name>
<timezone>+4</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/osinka/subset.git</connection>
<developerConnection>scm:git:[email protected]:osinka/subset.git</developerConnection>
<url>http://github.com/osinka/subset</url>
</scm>
<issueManagement>
<system>github</system>
<url>http://github.com/osinka/subset/issues</url>
</issueManagement>
</xml:group>