forked from meerkat-parser/Meerkat
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
executable file
·75 lines (68 loc) · 2.6 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
resolvers += "Sonatype OSS Snapshots" at
"https://oss.sonatype.org/content/repositories/releases"
lazy val commonSettings = Seq(
organization := "org.meerkat",
version := "0.1.0",
scalaVersion := "2.12.3",
parallelExecution in Test := false,
logBuffered in Test := false,
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
},
test in assembly := {}
)
lazy val core = (project in file("core"))
.settings(commonSettings)
.settings(
name := "MeerkatCore",
unmanagedSourceDirectories in Compile += baseDirectory.value / "src" / "macros" / "scala",
libraryDependencies ++= Seq(
"com.google.guava" % "guava-testlib" % "23.0",
"commons-io" % "commons-io" % "2.4",
"org.bitbucket.inkytonik.dsinfo" %% "dsinfo" % "0.4.0",
"org.scala-graph" %% "graph-core" % "1.12.0",
"org.apache.jena" % "jena-core" % "3.4.0" % Test,
"com.storm-enroute" %% "scalameter" % "0.10.1" % Test,
"org.scalactic" %% "scalactic" % "3.0.1" % Test,
"org.scalatest" %% "scalatest" % "3.0.1" % Test,
),
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"),
parallelExecution in Test := false
)
val neo4jVersion = "3.4.12"
lazy val neo4j = (project in file("neo4j"))
.settings(commonSettings)
.dependsOn(core % "compile->compile;test->test")
.settings(
name := "MeerkatNeo4j",
libraryDependencies ++= Seq(
"org.neo4j" % "neo4j" % neo4jVersion,
"org.neo4j" % "neo4j-kernel" % neo4jVersion,
"org.neo4j" % "neo4j-io" % neo4jVersion,
"org.scalactic" %% "scalactic" % "3.0.1" % Test,
"org.scalatest" %% "scalatest" % "3.0.1" % Test,
"org.neo4j" % "neo4j-kernel" % neo4jVersion % Test classifier "tests",
"org.neo4j" % "neo4j-io" % neo4jVersion % Test classifier "tests"
)
)
lazy val root = (project in file("."))
.settings(commonSettings)
.settings(
name := "MeerkatRoot"
)
.aggregate(core, neo4j)
.dependsOn(core, neo4j)
lazy val benchmark = (project in file("benchmark"))
.settings(commonSettings)
.settings(
name := "MeerkatBenchmark",
libraryDependencies ++= Seq(
"com.storm-enroute" %% "scalameter" % "0.10.1"
)
)
.aggregate(root)
.dependsOn(root)
scalafmtConfig in ThisBuild := file(".scalafmt.conf")
scalafmtOnCompile in ThisBuild := true
scalafmtTestOnCompile in ThisBuild := true