forked from precog/quasar-destination-avalanche
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
48 lines (40 loc) · 1.8 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
import scala.collection.Seq
homepage in ThisBuild := Some(url("https://github.com/slamdata/quasar-destination-avalanche"))
scmInfo in ThisBuild := Some(ScmInfo(
url("https://github.com/slamdata/quasar-destination-avalanche"),
"scm:[email protected]:slamdata/quasar-destination-avalanche.git"))
lazy val QuasarVersion = IO.read(file("./quasar-version")).trim
val DoobieVersion = "0.8.8"
val AsyncBlobstoreVersion = "2.0.0"
// Include to also publish a project's tests
lazy val publishTestsSettings = Seq(
Test / packageBin / publishArtifact := true)
lazy val root = project
.in(file("."))
.settings(noPublishSettings)
.aggregate(core)
.enablePlugins(AutomateHeaderPlugin)
lazy val core = project
.in(file("core"))
.settings(name := "quasar-destination-avalanche")
.settings(
performMavenCentralSync := false,
publishAsOSSProject := true,
assemblyExcludedJars in assembly := {
val cp = (fullClasspath in assembly).value
cp.filter(_.data.getName != "iijdbc.jar") // exclude everything but iijdbc.jar
},
quasarPluginName := "avalanche",
quasarPluginQuasarVersion := QuasarVersion,
quasarPluginDestinationFqcn := Some("quasar.destination.avalanche.AvalancheDestinationModule$"),
quasarPluginDependencies ++= Seq(
"org.slf4s" %% "slf4s-api" % "1.7.25",
"org.tpolecat" %% "doobie-core" % DoobieVersion,
"org.tpolecat" %% "doobie-hikari" % DoobieVersion,
"com.slamdata" %% "async-blobstore-azure" % AsyncBlobstoreVersion,
"com.slamdata" %% "async-blobstore-core" % AsyncBlobstoreVersion),
excludeDependencies += "org.typelevel" % "scala-library",
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-core" % "4.8.3" % Test),
packageBin in Compile := (assembly in Compile).value)
.enablePlugins(AutomateHeaderPlugin, QuasarPlugin)