-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
29 lines (21 loc) · 958 Bytes
/
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
name := "doctors-rota-generator"
version := "0.1"
scalaVersion := "2.13.2"
scalastyleFailOnError := true
scalastyleFailOnWarning := true
// Add Scalastyle task to Compile
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := scalastyle.in(Compile).toTask("").value
(compile in Compile) := ((compile in Compile) dependsOn compileScalastyle).value
// add Scalastyle task to test
(scalastyleConfig in Test) := baseDirectory.value / "scalastyle-test-config.xml"
lazy val testScalastyle = taskKey[Unit]("testScalastyle")
testScalastyle := scalastyle.in(Test).toTask("").value
(test in Test) := ((test in Test) dependsOn testScalastyle).value
assemblyJarName in assembly := "rota.jar"
scalafmtConfig in ThisBuild := file("scalafmt.conf")
scalafmtConfig := file("scalafmt.conf")
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scalatest" % "scalatest_2.13" % "3.1.2" % "test",
)