forked from beloglazov/couchdb-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
117 lines (84 loc) · 3.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import SonatypeKeys._
sonatypeSettings
profileName := "com.ibm.couchdb-scala"
organization := "com.ibm"
name := "couchdb-scala"
version := "0.5.2-SNAPSHOT"
scalaVersion := "2.11.5"
description := "A purely functional Scala client for CouchDB"
homepage := Some(url("https://github.com/beloglazov/couchdb-scala"))
licenses := Seq("The Apache Software License, Version 2.0"
-> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
resolvers += "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.1.0",
"org.scalaz" %% "scalaz-effect" % "7.1.0",
"org.http4s" %% "http4s-core" % "0.6.1",
"org.http4s" %% "http4s-client" % "0.6.1",
"org.http4s" %% "http4s-blazeclient" % "0.6.1",
"com.lihaoyi" %% "upickle" % "0.2.6",
"com.github.julien-truffaut" %% "monocle-core" % "1.0.1",
"com.github.julien-truffaut" %% "monocle-macro" % "1.0.1",
"org.log4s" %% "log4s" % "1.1.3",
"org.specs2" %% "specs2" % "2.4.16" % "test",
"org.typelevel" %% "scalaz-specs2" % "0.3.0" % "test",
"org.scalacheck" %% "scalacheck" % "1.12.1" % "test",
"org.scalaz" %% "scalaz-scalacheck-binding" % "7.1.0" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.2" % "test"
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
)
wartremover.wartremoverSettings
wartremover.wartremoverErrors in (Compile, compile) ++= Seq(
wartremover.Wart.Any,
wartremover.Wart.Any2StringAdd,
wartremover.Wart.EitherProjectionPartial,
wartremover.Wart.OptionPartial,
wartremover.Wart.Product,
wartremover.Wart.Serializable,
wartremover.Wart.ListOps
)
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(compile in Compile) <<= (compile in Compile) dependsOn compileScalastyle
lazy val testScalastyle = taskKey[Unit]("testScalastyle")
testScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Test).toTask("").value
(test in Test) <<= (test in Test) dependsOn testScalastyle
testFrameworks := Seq(TestFrameworks.Specs2, TestFrameworks.ScalaCheck)
parallelExecution in Test := false
unmanagedSourceDirectories in Compile += baseDirectory.value / "examples" / "src" / "main" / "scala"
initialCommands in console := "import scalaz._, Scalaz._"
initialCommands in console in Test := "import scalaz._, Scalaz._, scalacheck.ScalazProperties._, scalacheck.ScalazArbitrary._,scalacheck.ScalaCheckBinding._"
logBuffered := false
publishMavenStyle := true
publishArtifact in Test := false
pomExtra := {
<scm>
<connection>scm:git:[email protected]:beloglazov/couchdb-scala.git</connection>
<developerConnection>scm:git:[email protected]:beloglazov/couchdb-scala.git</developerConnection>
<url>https://github.com/beloglazov/couchdb-scala</url>
</scm>
<developers>
<developer>
<id>beloglazov</id>
<name>Anton Beloglazov</name>
<email>[email protected]</email>
<url>http://beloglazov.info</url>
</developer>
</developers>
}