diff options
author | Jack Sangdahl <[email protected]> | 2024-12-12 21:02:58 -0700 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2024-12-12 21:02:58 -0700 |
commit | 08f9cae13d0dce99d40a6d93432a84cb075bebfc (patch) | |
tree | 5714d73c616b511d8fa5ea8a0ef1d8405f13ce90 /lab3/build.sbt | |
parent | 0d13c649bdabafde59233609be7bd88e273c7ae6 (diff) | |
download | csci3155-08f9cae13d0dce99d40a6d93432a84cb075bebfc.tar.gz csci3155-08f9cae13d0dce99d40a6d93432a84cb075bebfc.zip |
Unit 3
Signed-off-by: Jack Sangdahl <[email protected]>
Diffstat (limited to 'lab3/build.sbt')
-rw-r--r-- | lab3/build.sbt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lab3/build.sbt b/lab3/build.sbt new file mode 100644 index 0000000..4d86186 --- /dev/null +++ b/lab3/build.sbt @@ -0,0 +1,46 @@ +name := "pppl-lab3" + +lazy val commonSettings = Seq( + organization := "edu.colorado.cs", + version := "4.0.0", + scalaVersion := "2.13.14", + scalacOptions ++= Seq( + "-unchecked", // Enable additional warnings where generated code depends on assumptions. + "-feature", // Emit warning for features that should be imported explicitly + "-Xcheckinit", // Wrap field accessors to throw an exception on uninitialized access + "-deprecation", // Emit warning and location for usages of deprecated APIs. + "-explaintypes", // Explain type errors in more detail. + "-Ywarn-extra-implicit", // more than one implicit parameter section is defined + "-Xlint:nullary-unit", // nullary methods return Unit + "-Xlint:inaccessible", // inaccessible types in method signatures + "-Xlint:infer-any", // a type argument is inferred to be Any + "-Xlint:missing-interpolator", // literal appears to be missing an interpolator id + "-Xlint:option-implicit", // apply used implicit view + "-Xlint:package-object-classes", // object defined in package object + "-Xlint:stars-align", // wildcard must align with sequence component + "-Xlint:constant", // a constant arithmetic expression results in an error + //"-Xfatal-warnings", // turn warnings into errors + ), + libraryDependencies ++= Seq( + "org.scala-lang.modules" %% "scala-parser-combinators" % "2.4.0", + "org.scalatest" %% "scalatest" % "3.2.19" % "test" + ), + + // set logging to show only errors during runs + logLevel / run := Level.Error, + logLevel / runMain := Level.Error, + Global / excludeLintKeys += logLevel, + + // JVM arguments: 8G heap size, 2M stack size + //javaOptions in Test += "-Xmx8G -Xss2M", + + // scoverage options: always build with coverage + //coverageEnabled := true, + + // scalatest options: -o standard output, D durations + // -e stderr + Test / testOptions += Tests.Argument("-e"), +) + +lazy val lab = (project in file(".")). + settings(commonSettings: _*)
\ No newline at end of file |