-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
104 lines (96 loc) · 2.83 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
lazy val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
lazy val `typesolr-core` = (project in file("./typesolr-core")).
settings(
commonSettings,
libraryDependencies ++= Seq(
"org.apache.solr" % "solr-solrj" % "7.5.0",
"org.typelevel" %% "cats-core" % "1.4.0"
)
)
lazy val `typesolr-embedded` = (project in file("./typesolr-embedded")).
settings(
commonSettings,
libraryDependencies ++= Seq(
"org.apache.solr" % "solr-core" % "7.5.0"
)
).dependsOn(`typesolr-core`)
lazy val `typesolr-cats-effect` = (project in file("./typesolr-cats-effect")).
settings(
commonSettings,
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "1.0.0"
)
).dependsOn(`typesolr-core`)
lazy val `typesolr-zio` = (project in file("./typesolr-zio")).
settings(
commonSettings,
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-zio" % "0.2.11"
)
).dependsOn(`typesolr-core`)
lazy val `integration-test` = (project in file("./integration-test")).
configs(IntegrationTest).
settings(
commonSettings,
Defaults.itSettings,
libraryDependencies ++= Seq(
scalatest % "it,test",
"commons-io" % "commons-io" % "2.6"
),
Test / parallelExecution := false
).dependsOn(`typesolr-core`, `typesolr-cats-effect`, `typesolr-zio`, `typesolr-embedded`)
lazy val commonSettings = Seq(
scalaVersion := "2.12.7",
resolvers += "Restlet Repository" at "http://maven.restlet.org",
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.0.5",
scalatest % "test"
),
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "utf-8",
"-explaintypes",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xcheckinit",
"-Xfatal-warnings",
"-Xfuture",
"-Xlint:adapted-args",
"-Xlint:by-name-right-associative",
"-Xlint:constant",
"-Xlint:delayedinit-select",
"-Xlint:doc-detached",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:missing-interpolator",
"-Xlint:nullary-override",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Xlint:unsound-match",
"-Yno-adapted-args",
"-Ypartial-unification",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ywarn-numeric-widen",
//"-Ywarn-unused:implicits",
//"-Ywarn-unused:imports",
//"-Ywarn-unused:locals",
//"-Ywarn-unused:params",
//"-Ywarn-unused:patvars",
//"-Ywarn-unused:privates"
//"-Ywarn-value-discard"
)
)