diff --git a/be2-scala/build.sbt b/be2-scala/build.sbt index b8ed4ddbc0..fe7684e67c 100644 --- a/be2-scala/build.sbt +++ b/be2-scala/build.sbt @@ -66,11 +66,9 @@ copyProtocolTask := { Compile/ run/ mainClass := Some("ch.epfl.pop.Server") Compile/ packageBin/ mainClass := Some("ch.epfl.pop.Server") -lazy val scoverageSettings = Seq( - Compile/ coverageEnabled := true, - Test/ coverageEnabled := true, - packageBin/ coverageEnabled := false, -) +// https://github.com/ckipp01/dotty/blob/2fc33a36ea19752920d17596b5a6194c815a1873/docs/_docs/usage/coverage.md +Compile/ compile/ scalacOptions += + s"-coverage-out:target/scala-${scalaVersion.value}/scoverage-data" // Configure Sonar sonarProperties := Map( diff --git a/be2-scala/project/plugins.sbt b/be2-scala/project/plugins.sbt index 32bd7731dc..467444fb83 100644 --- a/be2-scala/project/plugins.sbt +++ b/be2-scala/project/plugins.sbt @@ -1,4 +1,4 @@ -addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.0-M4") addSbtPlugin("com.sonar-scala" % "sbt-sonar" % "2.3.0") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0") addSbtPlugin("com.rallyhealth.sbt" % "sbt-git-versioning" % "1.6.0")