forked from timeoutdigital/docless
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
58 lines (45 loc) · 1.94 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
organization := "com.dividat"
name := "docless"
version := "0.2.1"
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
publishTo := sonatypePublishToBundle.value
val circeVersion = "0.13.0"
val enumeratumVersion = "1.6.1"
val enumeratumCirceVersion = "1.6.1"
val catsVersion = "2.1.1"
val shapelessVersion = "2.3.3"
val ammoniteVersion = "2.2.0"
val scalaTestVersion = "3.2.0"
val jsonSchemaValidatorVersion = "2.2.6"
scalaVersion := "2.13.3"
crossScalaVersions := Seq("2.12.8", "2.13.3")
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n < 13 => Seq("-language:higherKinds")
case _ => Seq()
})
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.chuusai" %% "shapeless" % shapelessVersion,
"com.beachape" %% "enumeratum" % enumeratumVersion,
"com.beachape" %% "enumeratum-circe" % enumeratumCirceVersion,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-kernel" % catsVersion,
"org.typelevel" %% "cats-macros" % catsVersion,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"com.github.fge" % "json-schema-validator" % jsonSchemaValidatorVersion % "test",
"com.lihaoyi" % "ammonite" % ammoniteVersion % "test" cross CrossVersion.full
)
val predef = Seq(
"import com.dividat.docless.schema._",
"import com.dividat.docless.swagger._",
"import cats._",
"import cats.syntax.all._",
"import cats.instances.all._"
)
initialCommands in (Test, console) +=
s"""
|ammonite.Main(predef="${predef.mkString(";")}").run()
""".stripMargin