This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
65 lines (55 loc) · 1.88 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
import Dependencies._
lazy val scala212 = "2.12.17"
lazy val supportedScalaVersions = List(scala212)
lazy val root = (project in file(".")).
enablePlugins(BuildInfoPlugin).
configs(IntegrationTest).
settings(
name := "arc",
organization := "ai.tripl",
organizationHomepage := Some(url("https://arc.tripl.ai")),
crossScalaVersions := supportedScalaVersions,
licenses := List("MIT" -> new URL("https://opensource.org/licenses/MIT")),
scalastyleFailOnError := false,
libraryDependencies ++= etlDeps,
Test / parallelExecution := false,
IntegrationTest / parallelExecution := false,
buildInfoKeys := Seq[BuildInfoKey](version, scalaVersion),
buildInfoPackage := "ai.tripl.arc.ArcBuildInfo",
Defaults.itSettings,
publishTo := sonatypePublishTo.value,
pgpPassphrase := Some(sys.env.get("PGP_PASSPHRASE").getOrElse("").toCharArray),
pgpSecretRing := file("/pgp/secring.asc"),
pgpPublicRing := file("/pgp/pubring.asc"),
updateOptions := updateOptions.value.withGigahorse(false)
)
resolvers += Resolver.mavenLocal
publishM2Configuration := publishM2Configuration.value.withOverwrite(true)
// resolvers += "Spark Staging" at "https://repository.apache.org/content/repositories/orgapachespark-1367/"
run / fork := true
scalacOptions := Seq(
"-deprecation",
"-encoding", "utf-8",
"-explaintypes",
"-target:jvm-1.8",
"-unchecked",
"-feature",
"-Ywarn-dead-code",
"-Ywarn-inaccessible",
"-Ywarn-infer-any"
// "-Ywarn-unused"
)
javacOptions += "-Xlint:unchecked"
assembly / test := {}
// META-INF discarding
assembly / assemblyMergeStrategy := {
{
// this match removes META-INF files except for the ones for plugins
case PathList("META-INF", xs @ _*) =>
xs match {
case "services" :: xs => MergeStrategy.filterDistinctLines
case _ => MergeStrategy.discard
}
case x => MergeStrategy.first
}
}