forked from zrrobbins/mbknor-jackson-jsonSchema
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
executable file
·65 lines (60 loc) · 2.51 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
lazy val commonSettings = Seq(
organization := "com.kjetland",
organizationName := "mbknor",
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.8", "2.13.0-M5"),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
publishTo := Some(Resolver.file("file", new File("target"))),
homepage := Some(url("https://github.com/mbknor/mbknor-jackson-jsonSchema")),
licenses := Seq("MIT" -> url("https://github.com/mbknor/mbknor-jackson-jsonSchema/blob/master/LICENSE.txt")),
startYear := Some(2016),
scmInfo := Some(
ScmInfo(
url("https://github.com/mbknor/mbknor-jackson-jsonSchema"),
"scm:[email protected]:mbknor/mbknor-jackson-jsonSchema.git"
)
),
developers := List(
Developer(
id = "mbknor",
name = "Morten Kjetland",
email = "[email protected]",
url = url("https://github.com/mbknor")
)
),
compileOrder in Test := CompileOrder.Mixed,
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions ++= Seq("-unchecked", "-deprecation"),
scalacOptions in(Compile, doc) ++= Seq(scalaVersion.value).flatMap {
case v if v.startsWith("2.12") =>
Seq("-no-java-comments") //workaround for scala/scala-dev#249
case _ =>
Seq()
}
)
val jacksonVersion = "2.9.8"
val jacksonModuleScalaVersion = "2.9.8"
val slf4jVersion = "1.7.26"
val swaggerApiVersion = "1.5.13"
lazy val deps = Seq(
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"javax.validation" % "validation-api" % "2.0.1.Final",
"org.slf4j" % "slf4j-api" % slf4jVersion,
"io.swagger" % "swagger-annotations" % swaggerApiVersion,
"io.github.classgraph" % "classgraph" % "4.8.22",
"com.google.guava" % "guava" % "25.0-jre",
"org.scalatest" %% "scalatest" % "3.0.7" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
"com.github.java-json-tools" % "json-schema-validator" % "2.2.10" % "test",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonModuleScalaVersion % "test",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % jacksonVersion % "test",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % jacksonVersion % "test",
"joda-time" % "joda-time" % "2.10.1" % "test",
"com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % jacksonVersion % "test"
)
lazy val root = (project in file("."))
.settings(name := "mbknor-jackson-jsonSchema")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= (deps))