-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
59 lines (44 loc) · 1.76 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
name := baseDirectory.value.getName
organization := "systems.topic"
version := "0.0.1-SNAPSHOT"
crossScalaVersions := Seq(
/*"2.11.7", 多余,不需要两个*/
"2.11.11",
/*"2.12.2", 有一些编译问题:`the interface is not a direct parent`。*/
"2.12.6")
lazy val scalaSettings = Seq(
scalaVersion := "2.12.6"
)
lazy val root = Project(id = "engine", base = file("."))
.dependsOn(/*lang*/)
.settings(scalaSettings,
aggregate in update := false
)
// 启用对 java8 lambda 语法的支持。
scalacOptions += "-Xexperimental"
exportJars := true
// 注意:在 sbt 1.+版本,如果增加新包,必须置为false, 否则不会去网络下载。
offline := true
// 解决生成文档报错导致 jitpack.io 出错的问题。
publishArtifact in packageDoc := false
// 如果要用 jitpack 打包的话就加上,打完了再注掉。
resolvers += "jitpack" at "https://jitpack.io"
resolvers += Resolver.mavenCentral
//resolvers += Resolver.sonatypeRepo("releases")
libraryDependencies ++= Seq(
"com.github.dedge-space" % "scala-lang" % "cc6be80562",
"com.github.dedge-space" % "reflow" % "a2d3ecea44",
"org.openjdk.jol" % "jol-core" % "[0.9,)",
"org.scala-sbt" %% "io" % "1.2.0",
"org.ow2.asm" % "asm" % "6.2",
"org.ow2.asm" % "asm-util" % "6.2",
"org.ow2.asm" % "asm-commons" % "6.2",
"org.ow2.asm" % "asm-tree" % "6.2",
"org.ow2.asm" % "asm-analysis" % "6.2",
// 上述 asm 库对应的 scala 版本替代品。不过包名也都改了:scala.tools.asm。
// 但实际上,只是复制过去了代码,所以还是别用了。
// "org.scala-lang.modules" % "scala-asm" % "6.2.0-scala-2",
"org.apache.bcel" % "bcel" % "6.2",
"junit" % "junit" % "[4.12,)" % Test,
"org.scalatest" %% "scalatest" % "3.2.0-SNAP7" % Test
)