csci3155

CSCI3155 Coursework
git clone https://git.pngu.org/csci3155
Log | Files | Refs | README

build.sbt (1960B)


name := "pppl-lab2"

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: _*)