-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.sbt
115 lines (86 loc) · 3.84 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
import xerial.sbt.Sonatype.SonatypeKeys._
sonatypeSettings
profileName := "com.ibm.couchdb-scala"
organization := "com.ibm"
name := "couchdb-scala"
version := "0.8.0-SNAPSHOT"
scalaVersion := "2.11.8"
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"))
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.2.6",
"org.scalaz" %% "scalaz-effect" % "7.2.6",
"org.http4s" %% "http4s-core" % "0.14.6a",
"org.http4s" %% "http4s-client" % "0.14.6a",
"org.http4s" %% "http4s-blaze-client" % "0.14.6a",
"com.lihaoyi" %% "upickle" % "0.4.1",
"com.github.julien-truffaut" %% "monocle-core" % "1.2.2",
"com.github.julien-truffaut" %% "monocle-macro" % "1.2.2",
"org.log4s" %% "log4s" % "1.3.0",
"ch.qos.logback" % "logback-classic" % "1.1.7",
"org.specs2" %% "specs2" % "3.7" % "test",
"org.typelevel" %% "scalaz-specs2" % "0.3.0" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.0" % "test",
"org.scalaz" %% "scalaz-scalacheck-binding" % "7.2.1" % "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"
)
scalacOptions in (Compile, console) ~= (_ filterNot (
List("-Ywarn-unused-import", "-Xfatal-warnings").contains(_)))
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._, com.ibm.couchdb._"
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:git@github.com:beloglazov/couchdb-scala.git</connection>
<developerConnection>scm:git:git@github.com:beloglazov/couchdb-scala.git</developerConnection>
<url>https://github.com/beloglazov/couchdb-scala</url>
</scm>
<developers>
<developer>
<id>beloglazov</id>
<name>Anton Beloglazov</name>
<email>anton.beloglazov@gmail.com</email>
<url>http://beloglazov.info</url>
</developer>
</developers>
}