forked from ThoughtWorksInc/json-stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
105 lines (77 loc) · 2.9 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
resolvers in ThisBuild += "Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/"
for (c <- Seq(Compile, Test)) yield {
haxeOptions in c ++=
Seq("-D", "scala")
}
for (c <- Seq(Compile, Test, CSharp, TestCSharp)) yield {
haxeOptions in c ++=
Seq(
"-D", "no-root",
"-D", "json_stream_no_dot",
"-lib", "continuation")
}
for (c <- Seq(CSharp, TestCSharp)) yield {
haxeOptions in c ++= Seq("-lib", "HUGS", "-D", "CF")
}
haxeOptions in CSharp ++= Seq("-D", "unity", "-D", "dll")
haxeOptions in TestCSharp ++= Seq("-D", "WITHOUTUNITY", "-main", "com.qifun.jsonStream.Main")
haxeOptions in Test ++= Seq("-main", "com.qifun.jsonStream.Main")
haxeOptions in Compile ++= Seq("--macro", "com.qifun.util.Patcher.noExternalDoc()")
haxeOptions in Compile ++= Seq("-dce", "no")
haxeOptions in Test ++= Seq("-dce", "no")
javacOptions in Compile in compile += "-Xlint:-deprecation"
libraryDependencies += "org.scala-stm" %% "scala-stm" % "0.7"
libraryDependencies += "com.qifun" % "haxe-util" % "0.1.0" % HaxeJava classifier "haxe-java"
libraryDependencies += "com.qifun" %% "haxe-scala-library" % "0.2.1" % HaxeJava classifier "haxe-java"
libraryDependencies += "com.qifun.sbt-haxe" %% "test-interface" % "0.1.0" % Test
libraryDependencies += "com.qifun" %% "haxe-scala-stm" % "0.1.4" % HaxeJava classifier "haxe-java"
libraryDependencies += "org.reactivemongo" %% "reactivemongo" % "0.10.5.0.akka23"
crossScalaVersions := Seq("2.10.4", "2.11.2")
doc in Compile := {
(doc in Compile).result.value.toEither match {
case Left(_) => {
// Ignore error
(target in doc in Compile).value
}
case Right(right) => {
right
}
}
}
organization := "com.qifun"
name := "json-stream"
version := "0.2.3-SNAPSHOT"
homepage := Some(url(s"https://github.com/qifun/${name.value}"))
startYear := Some(2014)
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
publishTo <<= (isSnapshot) { isSnapshot: Boolean =>
if (isSnapshot)
Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
scmInfo := Some(ScmInfo(
url(s"https://github.com/qifun/${name.value}"),
s"scm:git:git://github.com/qifun/${name.value}.git",
Some(s"scm:git:git@github.com:qifun/${name.value}.git")))
pomExtra :=
<developers>
<developer>
<id>Atry</id>
<name>杨博 (Yang Bo)</name>
<timezone>+8</timezone>
<email>pop.atry@gmail.com</email>
</developer>
<developer>
<id>zxiy</id>
<name>张修羽 (Zhang Xiuyu)</name>
<timezone>+8</timezone>
<email>95850845@qq.com</email>
</developer>
<developer>
<id>chank</id>
<name>方里权 (Fang Liquan)</name>
<timezone>+8</timezone>
<email>fangliquan@qq.com</email>
</developer>
</developers>