-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
64 lines (49 loc) · 1.7 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
organization := "com.osinka.subset"
name := "subset"
homepage := Some(url("https://github.com/osinka/subset2"))
startYear := Some(2013)
scalaVersion := "2.11.11"
crossScalaVersions := Seq("2.11.11", "2.12.3")
licenses += "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
organizationName := "Osinka"
description := """MongoDB Document parser combinators and builders"""
scalacOptions ++= List("-deprecation", "-unchecked", "-feature")
libraryDependencies ++= Seq(
"org.mongodb" % "mongo-java-driver" % "3.4.3",
"org.scalatest" %% "scalatest" % "3.0.3" % "test"
)
credentials += {
val file =
if (version.value.trim endsWith "SNAPSHOT") "credentials_osinka"
else "credentials_sonatype"
Credentials(Path.userHome / ".ivy2" / file)
}
pomIncludeRepository := { x => false }
publishTo := {
Some(
if (version.value.trim endsWith "SNAPSHOT")
"Osinka Internal Repo" at "https://r.osinka.co/content/repositories/snapshots/"
else
"Sonatype OSS Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
)
}
useGpg := true
pomExtra := <xml:group>
<developers>
<developer>
<id>alaz</id>
<email>azarov@osinka.com</email>
<name>Alexander Azarov</name>
<timezone>Europe/Riga</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/osinka/subset2.git</connection>
<developerConnection>scm:git:git@github.com:osinka/subset2.git</developerConnection>
<url>http://github.com/osinka/subset2</url>
</scm>
<issueManagement>
<system>github</system>
<url>http://github.com/osinka/subset2/issues</url>
</issueManagement>
</xml:group>