-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
60 lines (51 loc) · 2.39 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
import scala.collection.Seq
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / githubRepository := "quasar-destination-s3"
homepage in ThisBuild := Some(url("https://github.com/precog/quasar-destination-s3"))
scmInfo in ThisBuild := Some(ScmInfo(
url("https://github.com/precog/quasar-destination-s3"),
"scm:git@github.com:precog/quasar-destination-s3.git"))
ThisBuild / githubWorkflowBuildPreamble +=
WorkflowStep.Run(
List("base64 -d testCredentials.json.b64 > testCredentials.json"),
name = Some("Decode testCredentials"))
val ArgonautVersion = "6.2.3"
val AwsSdkVersion = "2.15.34"
val AwsV1SdkVersion = "1.11.634"
val Fs2Version = "2.1.0"
val MonixVersion = "3.0.0"
val SpecsVersion = "4.8.3"
// Include to also publish a project's tests
lazy val publishTestsSettings = Seq(
publishArtifact in (Test, packageBin) := true)
lazy val root = project
.in(file("."))
.settings(noPublishSettings)
.aggregate(core)
lazy val core = project
.in(file("core"))
.settings(name := "quasar-destination-s3")
.settings(
performMavenCentralSync := false,
quasarPluginName := "s3-dest",
quasarPluginQuasarVersion := managedVersions.value("precog-quasar"),
quasarPluginDestinationFqcn := Some("quasar.destination.s3.S3DestinationModule$"),
quasarPluginDependencies ++= Seq(
"io.argonaut" %% "argonaut" % ArgonautVersion,
"co.fs2" %% "fs2-core" % Fs2Version,
"com.precog" %% "async-blobstore-core" % managedVersions.value("precog-async-blobstore"),
"com.precog" %% "async-blobstore-s3" % managedVersions.value("precog-async-blobstore"),
"software.amazon.awssdk" % "netty-nio-client" % AwsSdkVersion,
"software.amazon.awssdk" % "s3" % AwsSdkVersion,
// We depend on both v1 and v2 S3 SDKs because of this ticket:
// https://github.com/aws/aws-sdk-java-v2/issues/272
// Depending on both is the recommended workaround
"com.amazonaws" % "aws-java-sdk-s3" % AwsV1SdkVersion),
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-core" % SpecsVersion % Test,
"com.precog" %% "quasar-foundation" % managedVersions.value("precog-quasar"),
"com.precog" %% "quasar-foundation" % managedVersions.value("precog-quasar") % Test classifier "tests",
"org.specs2" %% "specs2-scalacheck" % SpecsVersion % Test,
"org.specs2" %% "specs2-scalaz" % SpecsVersion % Test),
publishAsOSSProject := true)
.enablePlugins(QuasarPlugin)