-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sbt
134 lines (121 loc) · 5.49 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import Dependencies._
lazy val baseSettings = Seq(
name := "fintrospect",
organization := "io.fintrospect",
version := "17.0.0",
scalaVersion := "2.13.3",
crossScalaVersions := Seq("2.13.3"),
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
resolvers += "JCenter" at "https://jcenter.bintray.com",
scalacOptions := Seq(
"-deprecation",
"-encoding", "UTF-8",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-feature"
),
pomExtra :=
<url>http://fintrospect.io</url>
<scm>
<url>git@github.com:daviddenton/fintrospect.git</url>
<connection>scm:git:git@github.com:daviddenton/fintrospect.git</connection>
<developerConnection>scm:git:git@github.com:daviddenton/fintrospect.git</developerConnection>
</scm>
<developers>
<developer>
<name>David Denton</name>
<email>dev@fintrospect.io</email>
<organization>fintrospect</organization>
<organizationUrl>http://fintrospect.io</organizationUrl>
</developer>
</developers>,
bintrayOrganization := Some("fintrospect"),
credentials += Credentials(Path.userHome / ".sonatype" / ".credentials")
)
lazy val core = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-core")
.settings(libraryDependencies ++= Seq(
"org.apache.commons" % "commons-lang3" % commonsLang3Version,
"net.sourceforge.argo" % "argo" % argoVersion,
"com.twitter" %% "finagle-http" % finagleVersion,
"com.google.guava" % "guava" % guavaVersion,
"org.scala-lang.modules" %% "scala-xml" % scalaXmlVersion,
"com.sun.activation" % "javax.activation" % javaXActivationVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
))
.settings(description := "Implement fast, type-safe HTTP contracts for Finagle (aka Twitter RPC)")
lazy val argonaut = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-argonaut")
.settings(description := "Argonaut JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "io.argonaut" %% "argonaut" % argonautVersion)
lazy val circe = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-circe")
.settings(description := "Circe JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies ++= Seq("io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion)
)
lazy val gson = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-gson")
.settings(description := "GSON JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "com.google.code.gson" % "gson" % gsonVersion)
lazy val jackson = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-jackson")
.settings(description := "Jackson JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion)
lazy val json4s = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-json4s")
.settings(description := "Json4S JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies ++= Seq("org.json4s" %% "json4s-native" % json4sVersion,
"org.json4s" %% "json4s-jackson" % json4sVersion))
lazy val play = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-play")
.settings(description := "Play JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "com.typesafe.play" %% "play-json" % playJsonVersion)
lazy val spray = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-spray")
.settings(description := "Spray JSON library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "io.spray" %% "spray-json" % sprayJsonVersion)
//lazy val msgpack = project
// .settings(baseSettings)
// .settings(moduleName := "fintrospect-msgpack")
// .settings(description := "MsgPack library support for Fintrospect")
// .dependsOn(core % "compile->test")
// .settings(libraryDependencies ++= Seq("org.json4s" %% "json4s-native" % json4sVersion,
// "org.velvia" %% "msgpack4s" % "0.6.0"))
// Templating libraries
lazy val handlebars = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-handlebars")
.settings(description := "Handlebars templating library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "io.github.daviddenton" %% "handlebars-scala-fork" % handlebarsScalaForkVersion exclude("org.slf4j", "slf4j-simple"))
lazy val mustache = project
.settings(baseSettings)
.settings(moduleName := "fintrospect-mustache")
.settings(description := "Mustache templating library support for Fintrospect")
.dependsOn(core % "compile->test")
.settings(libraryDependencies += "com.github.spullara.mustache.java" % "compiler" % mustacheCompilerVersion)
// other
lazy val examples = project.in(file("."))
.settings(baseSettings)
.enablePlugins(ScalaUnidocPlugin)
.settings(moduleName := "fintrospect-examples")
.aggregate(core, argonaut, circe, gson, jackson, json4s, play, spray, handlebars, mustache)
.dependsOn(core, argonaut, circe, gson, jackson, json4s, play, spray, handlebars, mustache)