generated from teamclairvoyant/scala3-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
75 lines (55 loc) · 1.76 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
66
67
68
69
70
71
72
73
74
75
ThisBuild / scalaVersion := "3.3.0"
ThisBuild / organization := "com.clairvoyant.data.scalaxy"
ThisBuild / version := "1.2.0"
ThisBuild / resolvers ++= Seq(
"DataScalaxyTestUtil Repo" at "https://maven.pkg.github.com/teamclairvoyant/data-scalaxy-test-util"
)
ThisBuild / credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
System.getenv("GITHUB_USERNAME"),
System.getenv("GITHUB_TOKEN")
)
ThisBuild / publishTo := Some(
"Github Repo" at s"https://maven.pkg.github.com/teamclairvoyant/data-scalaxy-transformer/"
)
// ----- SCALAFIX ----- //
ThisBuild / semanticdbEnabled := true
ThisBuild / scalafixOnCompile := true
// ----- WARTREMOVER ----- //
ThisBuild / wartremoverErrors ++= Warts.allBut(
Wart.DefaultArguments,
Wart.Equals,
Wart.IsInstanceOf,
Wart.IterableOps,
Wart.Overloading,
Wart.PlatformDefault,
Wart.Recursion,
Wart.StringPlusAny,
Wart.Throw
)
// ----- TOOL VERSIONS ----- //
val dataScalaxyTestUtilVersion = "1.0.0"
val sparkVersion = "3.4.1"
// ----- TOOL DEPENDENCIES ----- //
val dataScalaxyTestUtilDependencies = Seq(
"com.clairvoyant.data.scalaxy" %% "test-util" % dataScalaxyTestUtilVersion % Test
)
val sparkDependencies = Seq(
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion
)
.map(_ excludeAll ("org.scala-lang.modules", "scala-xml"))
.map(_.cross(CrossVersion.for3Use2_13))
// ----- MODULE DEPENDENCIES ----- //
val rootDependencies =
dataScalaxyTestUtilDependencies ++
sparkDependencies
// ----- SETTINGS ----- //
val rootSettings = Seq(
Keys.scalacOptions ++= Seq("-Xmax-inlines", "50"),
libraryDependencies ++= rootDependencies
)
// ----- PROJECTS ----- //
lazy val `transformer` = (project in file("."))
.settings(rootSettings)