forked from guardian/content-atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
30 lines (21 loc) · 793 Bytes
/
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
import com.github.bigtoast.sbtthrift.ThriftPlugin._
organization := "com.gu"
name := "content-atom-model"
version := "0.2.0-SNAPSHOT"
// this is not a scala application: the JVM compiled version of the
// library is built from auto-generated Java source, so there is no
// need to depend on Scala
autoScalaLibrary := false
crossPaths := false
libraryDependencies += "org.apache.thrift" % "libthrift" % "0.9.2"
// settings for the thrift plugin, both default and custom
thriftSettings ++ inConfig(Thrift) {
// add the node option to the js generator, as that is the style of
// code that we want to generate
Seq(
thriftJsEnabled := true,
thriftJsOptions := Seq("node"),
thriftOutputDir <<= baseDirectory / "generated",
thriftJsOutputDir <<= thriftOutputDir
)
}