forked from mbknor/mbknor-jackson-jsonSchema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·70 lines (63 loc) · 2.63 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
lazy val commonSettings = Seq(
organization := "com.kjetland",
organizationName := "mbknor",
version := "1.0.8-SNAPSHOT",
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.10.4", "2.11.8"),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
// publishTo := {
// val nexus = "http://nexus.nextgentel.net/content/repositories/"
// if (isSnapshot.value)
// Some("snapshots" at nexus + "snapshots/")
// else
// Some("releases" at nexus + "thirdparty/")
// },
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
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),
pomExtra := (
<scm>
<url>[email protected]:mbknor/mbknor-jackson-jsonSchema.git</url>
<connection>scm:git:[email protected]:mbknor/mbknor-jackson-jsonSchema.git</connection>
</scm>
<developers>
<developer>
<id>mbknor</id>
<name>Morten Kjetland</name>
<url>https://github.com/mbknor</url>
</developer>
</developers>),
compileOrder in Test := CompileOrder.Mixed,
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions ++= Seq("-unchecked", "-deprecation")
)
val jacksonVersion = "2.7.5"
val jacksonModuleScalaVersion = "2.7.4"
val slf4jVersion = "1.7.7"
lazy val deps = Seq(
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"javax.validation" % "validation-api" % "1.1.0.Final",
"org.slf4j" % "slf4j-api" % slf4jVersion,
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.3" % "test",
"com.github.fge" % "json-schema-validator" % "2.2.6" % "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.9.4" % "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))