-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
31 lines (24 loc) · 1.05 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
ThisBuild / scalaVersion := "2.13.8"
val DEFAULT_TRINO_VERSION = "395"
val projectName = "trino-plugins"
val trinoVersion = scala.sys.env.getOrElse("TRINO_VERSION", DEFAULT_TRINO_VERSION)
ThisBuild / version := trinoVersion
lazy val root = (project in file("."))
.settings(
name := "trino-http-requester",
idePackagePrefix := Some("com.d2x.trinoplugins")
)
libraryDependencies ++= Seq(
"io.trino" % "trino-spi" % trinoVersion % "provided",
"io.trino" % "trino-plugin-toolkit" % trinoVersion,
"com.google.guava" % "guava" % "31.1-jre",
"org.scalaj" %% "scalaj-http" % "2.4.2",
)
assembly / assemblyJarName := "http-requester.jar"
assembly / assemblyOutputPath := file(s"target/http-requester/${(assembly/assemblyJarName).value}")
assembly / assemblyMergeStrategy := {
case PathList("io", "trino", "spi", "license", "LicenseManager.class") => MergeStrategy.discard
case PathList("META-INF", "services", "io.trino.spi.Plugin") => MergeStrategy.first
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}