-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
69 lines (53 loc) · 1.85 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
organization := "com.kifi"
name := "json-annotation"
version := "0.2"
scalaVersion := "2.11.1"
crossScalaVersions := Seq("2.10.2", "2.10.3", "2.10.4", "2.11.0", "2.11.1")
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
"Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
)
libraryDependencies <+= (scalaVersion)("org.scala-lang" % "scala-reflect" % _)
libraryDependencies ++= (
if (scalaVersion.value.startsWith("2.10")) List("org.scalamacros" %% "quasiquotes" % "2.0.1")
else Nil
)
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.3.1" % Test,
"org.specs2" %% "specs2" % "2.3.13" % Test
)
unmanagedSourceDirectories in Compile <+= (sourceDirectory in Compile, scalaBinaryVersion){
(sourceDir, version) => sourceDir / (if (version.startsWith("2.10")) "scala_2.10" else "scala_2.11")
}
addCompilerPlugin("org.scalamacros" % "paradise" % "2.0.1" cross CrossVersion.full)
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
publishMavenStyle := true
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")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/kifi/json-annotation</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:kifi/json-annotation.git</url>
<connection>scm:git:[email protected]:kifi/json-annotation.git</connection>
</scm>
<developers>
<developer>
<id>martinraison</id>
<name>Martin Raison</name>
<url>https://github.com/martinraison</url>
</developer>
</developers>)