forked from fyndalf/sustainability-analysis-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
28 lines (26 loc) · 1.26 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
val scala3Version = "3.1.2"
lazy val root = project
.in(file("."))
.settings(
name := "SustainabilityAnalysisTool",
version := "0.1.0",
assembly / assemblyJarName := "sustainability-analysis-tool.jar",
scalaVersion := scala3Version,
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test,
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "2.1.0",
libraryDependencies += "com.monovore" %% "decline" % "2.2.0"
)
//
scalacOptions ++= Seq(
"-deprecation", // emit warning and location for usages of deprecated APIs
"-explain", // explain errors in more detail
"-explain-types", // explain type errors in more detail
"-feature", // emit warning and location for usages of features that should be imported explicitly
"-new-syntax", // require `then` and `do` in control expressions.
"-rewrite", // make scalac rewrite to new syntax
"-print-lines", // show source code line numbers.
"-unchecked", // enable additional warnings where generated code depends on assumptions
"-Ykind-projector", // allow `*` as wildcard to be compatible with kind projector
"-Xfatal-warnings", // fail the compilation if there are any warnings
"-Xmigration" // warn about constructs whose behavior may have changed since version
)