-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
66 lines (50 loc) · 1.74 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
organization := "com.osinka.httpbl"
name := "httpbl"
homepage := Some(url("https://github.com/osinka/httpbl"))
startYear := Some(2013)
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.12.0")
licenses += "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
organizationName := "Osinka"
description := """http:BL API"""
scalacOptions ++= List("-deprecation", "-unchecked")
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test"
)
testOptions in Test += Tests.Argument("-oDS")
credentials <+= (version) map { version: String =>
val file =
if (version.trim endsWith "SNAPSHOT") "credentials_osinka"
else "credentials_sonatype"
Credentials(Path.userHome / ".ivy2" / file)
}
pomIncludeRepository := { x => false }
publishTo <<= (version) { version: String =>
Some(
if (version.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>+4</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/osinka/httpbl.git</connection>
<developerConnection>scm:git:git@github.com:osinka/httpbl.git</developerConnection>
<url>http://github.com/osinka/httpbl</url>
</scm>
<issueManagement>
<system>github</system>
<url>http://github.com/osinka/httpbl/issues</url>
</issueManagement>
</xml:group>