frank/build.sbt

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-10-10 20:50:26 +03:00
import SbtCommons._
name := "frank"
commons
2019-10-11 02:01:25 +03:00
skip in publish := false // skip the root project to be published
2019-10-10 20:50:26 +03:00
/* Projects */
2019-10-11 02:01:25 +03:00
lazy val `vm-rust` = (project in file("src/main/rust"))
2019-10-10 20:50:26 +03:00
.settings(
2019-10-11 02:01:25 +03:00
skip in publish := true,
2019-10-10 20:50:26 +03:00
compileFrankVMSettings()
)
2019-10-10 23:02:39 +03:00
lazy val `vm-llamadb` = (project in file("src/it/resources/llamadb"))
2019-10-10 20:50:26 +03:00
.settings(
2019-10-11 02:01:25 +03:00
skip in publish := true,
2019-10-10 20:50:26 +03:00
downloadLlamadb()
)
2019-10-10 23:02:39 +03:00
lazy val `vm-scala` = (project in file("."))
2019-10-10 20:50:26 +03:00
.configs(IntegrationTest)
.settings(inConfig(IntegrationTest)(Defaults.itSettings): _*)
.settings(
commons,
libraryDependencies ++= Seq(
cats,
catsEffect,
ficus,
scalaTest,
scalaIntegrationTest,
2019-10-10 22:44:23 +03:00
scodecCore,
2019-10-10 20:50:26 +03:00
mockito
),
2019-10-11 02:01:25 +03:00
nativeResourceSettings(),
2019-10-10 20:50:26 +03:00
assemblyJarName in assembly := "frank.jar",
assemblyMergeStrategy in assembly := SbtCommons.mergeStrategy.value,
test in assembly := {},
compile in Compile := (compile in Compile)
.dependsOn(compile in `vm-rust`).value,
test in IntegrationTest := (test in IntegrationTest)
.dependsOn(compile in `vm-llamadb`)
.value
)
.enablePlugins(AutomateHeaderPlugin)