forked from agourlay/cornichon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
100 lines (88 loc) · 3.52 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
import scalariform.formatter.preferences._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
name := "cornichon"
organization := "com.github.agourlay"
description := "Scala DSL for testing HTTP JSON API"
licenses := Seq("Apache License, ASL Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/agourlay/cornichon"))
scalaVersion := "2.12.0"
crossScalaVersions := Seq("2.11.8", "2.12.0")
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-encoding", "UTF-8",
"-Ywarn-dead-code",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-numeric-widen",
"-language:implicitConversions",
"-language:postfixOps",
"-feature",
"-Xlint:missing-interpolator"
)
fork in Test := true
SbtScalariform.scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(RewriteArrowSymbols, true)
libraryDependencies ++= {
val scalaTestV = "3.0.1"
val akkaV = "2.4.14"
val akkaHttpV = "10.0.0"
val catsV = "0.8.1"
val logbackV = "1.1.7"
val parboiledV = "2.1.3"
val akkaSseV = "2.0.0-M5"
val scalaCheckV = "1.13.4"
val sangriaCirceV = "0.6.1"
val circeVersion = "0.6.1"
val sangriaV = "1.0.0-RC4"
val fansiV = "0.2.3"
val akkaHttpCirce = "1.11.0"
val catsScalaTest = "2.1.1"
val ficusV = "1.3.4"
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaV
,"com.typesafe.akka" %% "akka-http-core" % akkaHttpV
,"com.typesafe.akka" %% "akka-http" % akkaHttpV
,"de.heikoseeberger" %% "akka-sse" % akkaSseV
,"org.typelevel" %% "cats-macros" % catsV
,"org.typelevel" %% "cats-core" % catsV
,"org.scalatest" %% "scalatest" % scalaTestV
,"com.iheart" %% "ficus" % ficusV
,"ch.qos.logback" % "logback-classic" % logbackV
,"org.parboiled" %% "parboiled" % parboiledV
,"org.scalacheck" %% "scalacheck" % scalaCheckV
,"com.lihaoyi" %% "fansi" % fansiV
,"org.sangria-graphql" %% "sangria" % sangriaV
,"org.sangria-graphql" %% "sangria-circe" % sangriaCirceV
,"io.circe" %% "circe-core" % circeVersion
,"io.circe" %% "circe-generic" % circeVersion
,"io.circe" %% "circe-parser" % circeVersion
,"de.heikoseeberger" %% "akka-http-circe" % akkaHttpCirce % "test"
,"com.ironcorelabs" %% "cats-scalatest" % catsScalaTest % "test"
)
}
// Publishing
releasePublishArtifactsAction := PgpKeys.publishSigned.value
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := (_ => false)
publishTo := Some(
if (version.value.trim.endsWith("SNAPSHOT"))
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
// Additional meta-info required by maven central
startYear := Some(2015)
organizationHomepage := Some(url("https://github.com/agourlay/cornichon"))
developers := Developer("agourlay", "Arnaud Gourlay", "", url("https://github.com/agourlay")) :: Nil
scmInfo := Some(ScmInfo(
browseUrl = url("https://github.com/agourlay/cornichon.git"),
connection = "scm:git:[email protected]:agourlay/cornichon.git"
))
// Integration tests
lazy val root = project.in(file(".")).configs(IntegrationTest)
Defaults.itSettings