-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (53 loc) · 1.82 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
import sbt._
import Keys._
val scioVersion = "0.12.8"
val beamVersion = "2.46.0"
val magnolifyVersion = "0.6.2"
lazy val commonSettings = Def.settings(
organization := "clairem.data",
// Semantic versioning http://semver.org/
version := "0.1.0-SNAPSHOT",
scalaVersion := "2.13.8",
resolvers += "confluent" at "https://packages.confluent.io/maven/",
scalacOptions ++= Seq("-target:jvm-1.8",
"-deprecation",
"-feature",
"-unchecked",
"-Ymacro-annotations",
),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
)
lazy val root: Project = project
.in(file("."))
.settings(commonSettings)
.settings(
name := "beam-test",
description := "beam-test",
publish / skip := true,
run / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat,
run / fork := true,
libraryDependencies ++= Seq(
"com.spotify" %% "scio-core" % scioVersion,
"com.spotify" %% "scio-google-cloud-platform" % scioVersion,
"com.spotify" %% "magnolify-bigquery" % magnolifyVersion,
"com.spotify" %% "scio-extra" % scioVersion,
"com.spotify" %% "scio-test" % scioVersion % Test,
"org.apache.beam" % "beam-runners-direct-java" % beamVersion,
"org.apache.beam" % "beam-runners-google-cloud-dataflow-java" % beamVersion,
"org.slf4j" % "slf4j-simple" % "1.7.36"
)
)
.enablePlugins(JavaAppPackaging)
lazy val repl: Project = project
.in(file(".repl"))
.settings(commonSettings)
.settings(
name := "repl",
description := "Scio REPL for beam-test",
libraryDependencies ++= Seq(
"com.spotify" %% "scio-repl" % scioVersion
),
Compile / mainClass := Some("com.spotify.scio.repl.ScioShell"),
publish / skip := true
)
.dependsOn(root)