-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
41 lines (29 loc) · 1.54 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
name := "jodie"
organization := "com.github.mrpowers"
version := "0.2.0"
crossScalaVersions := Seq("2.12.17", "2.13.10")
val sparkVersion = sys.env.getOrElse("SPARK_VERSION", "3.3.1")
val deltaVersion = sys.env.getOrElse("DELTA_VERSION", "2.1.0")
libraryDependencies += "org.apache.spark" %% "spark-sql" % sparkVersion % "provided"
libraryDependencies += "io.delta" %% "delta-core" % deltaVersion % "provided"
libraryDependencies += "com.github.mrpowers" %% "spark-daria" % "1.2.3" % "test"
libraryDependencies += "com.github.mrpowers" %% "spark-fast-tests" % "1.3.0" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test"
libraryDependencies += "com.lihaoyi" %% "os-lib" % "0.7.1" % "test"
// test suite settings
fork in Test := true
javaOptions ++= Seq("-Xms512M", "-Xmx2048M", "-XX:MaxPermSize=2048M", "-XX:+CMSClassUnloadingEnabled")
// Show runtime of tests
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oD")
// deploy stuff
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/MrPowers/jodie"))
developers ++= List(
Developer("MrPowers", "Matthew Powers", "@MrPowers", url("https://github.com/MrPowers"))
)
scmInfo := Some(ScmInfo(url("https://github.com/MrPowers/jodie"), "[email protected]:MrPowers/jodie.git"))
updateOptions := updateOptions.value.withLatestSnapshots(false)
publishMavenStyle := true
publishTo := sonatypePublishToBundle.value
Global / useGpgPinentry := true