-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sbt
30 lines (26 loc) · 1.09 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
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
mainClass := Some("com.example.App")
val beamVersion = "2.61.0"
libraryDependencies ++= Seq(
// App dependencies.
"org.apache.beam" % "beam-sdks-java-core" % beamVersion,
"org.apache.beam" % "beam-runners-direct-java" % beamVersion,
"org.slf4j" % "slf4j-jdk14" % "1.7.32",
// Test dependencies.
"junit" % "junit" % "4.13.2" % Test,
"com.novocode" % "junit-interface" % "0.11" % Test,
"org.hamcrest" % "hamcrest" % "2.2" % Test
)
// Package self-contained jar file.
assembly / assemblyOutputPath := file("build/pipeline.jar")
assembly / assemblyMergeStrategy := {
case PathList("META-INF") => MergeStrategy.discard
case x if x.endsWith(".class") => MergeStrategy.first
case x => (assembly / assemblyMergeStrategy).value(x)
}