-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sbt
66 lines (51 loc) · 2.43 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
import scala.collection.Seq
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / githubRepository := "quasar-datasource-s3"
publishAsOSSProject in ThisBuild := true
homepage in ThisBuild := Some(url("https://github.com/precog/quasar-datasource-s3"))
scmInfo in ThisBuild := Some(ScmInfo(
url("https://github.com/precog/quasar-datasource-s3"),
"scm:[email protected]:precog/quasar-datasource-s3.git"))
ThisBuild / githubWorkflowBuildPreamble +=
WorkflowStep.Run(
List("base64 -d testCredentials.json.b64 > testCredentials.json"),
name = Some("Decode testCredentials"))
lazy val root = project
.in(file("."))
.settings(noPublishSettings)
.aggregate(core)
val http4sVersion = "0.21.24"
val scalaXmlVersion = "1.1.0"
val catsEffectVersion = "2.5.1"
val shimsVersion = "2.0.0"
val specsVersion = "4.10.6"
lazy val core = project
.in(file("datasource"))
.settings(addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"))
.settings(
name := "quasar-datasource-s3",
quasarPluginName := "s3",
quasarPluginQuasarVersion := managedVersions.value("precog-quasar"),
quasarPluginDatasourceFqcn := Some("quasar.physical.s3.S3DatasourceModule$"),
/** Specify managed dependencies here instead of with `libraryDependencies`.
* Do not include quasar libs, they will be included based on the value of
* `datasourceQuasarVersion`.
*/
quasarPluginDependencies ++= Seq(
"org.slf4s" %% "slf4s-api" % "1.7.25",
"org.http4s" %% "http4s-scala-xml" % http4sVersion,
"org.http4s" %% "http4s-async-http-client" % http4sVersion,
"org.scala-lang.modules" %% "scala-xml" % scalaXmlVersion,
"com.codecommit" %% "shims" % shimsVersion,
"org.typelevel" %% "cats-effect" % catsEffectVersion
),
libraryDependencies ++= Seq(
"com.precog" %% "quasar-foundation" % managedVersions.value("precog-quasar") % Test classifier "tests",
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"org.specs2" %% "specs2-core" % specsVersion % Test,
"org.specs2" %% "specs2-scalaz" % specsVersion % Test,
"org.specs2" %% "specs2-scalacheck" % specsVersion % Test
))
.enablePlugins(QuasarPlugin)
.evictToLocal("QUASAR_PATH", "connector", true)
.evictToLocal("QUASAR_PATH", "api", true)