Skip to content

Commit c0cf26c

Browse files
committed
Account for M1 of scoverage
1 parent fa11d8d commit c0cf26c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := "sbt-scoverage"
22

33
import sbt.ScriptedPlugin.autoImport.scriptedLaunchOpts
44

5-
lazy val scoverageVersion = "15.0.0"
5+
lazy val scoverageVersion = "2.0.0-M2"
66

77
inThisBuild(
88
List(

src/main/scala/scoverage/ScoverageSbtPlugin.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ object ScoverageSbtPlugin extends AutoPlugin {
102102
)
103103

104104
private lazy val scalacSettings = Seq(
105-
// TODO check will need to go here for scala 3
106105
Compile / compile / scalacOptions ++= {
107106
val updateReport = update.value
108107
if (coverageEnabled.value && isScala2(scalaVersion.value)) {
@@ -158,8 +157,9 @@ object ScoverageSbtPlugin extends AutoPlugin {
158157
).flatten
159158
} else if (
160159
// TODO this is very temporary until support for this gets merged in.
161-
// For now we restrict this to this exact SNAPSHOT version
162-
coverageEnabled.value && scalaVersion.value == "3.1.1-RC1-bin-SNAPSHOT"
160+
// For now we restrict this to this exact SNAPSHOT version which needs
161+
// to be published localled in order to test
162+
coverageEnabled.value && scalaVersion.value == "3.1.2-RC1-bin-SNAPSHOT"
163163
) {
164164
Seq(
165165
"-coverage",

0 commit comments

Comments
 (0)