File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ object ScoverageKeys {
17
17
lazy val coverageOutputDebug = settingKey[Boolean ](" turn on the debug report" )
18
18
lazy val coverageCleanSubprojectFiles = settingKey[Boolean ](" removes subproject data after an aggregation" )
19
19
lazy val coverageOutputTeamCity = settingKey[Boolean ](" turn on teamcity reporting" )
20
+ lazy val coverageScalacPluginVersion = settingKey[String ](" version of scalac-scoverage-plugin to use" )
20
21
}
Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ object ScoverageSbtPlugin extends AutoPlugin {
30
30
coverageReport <<= coverageReport0,
31
31
coverageAggregate <<= coverageAggregate0,
32
32
ivyConfigurations := ivyConfigurations.value :+ ScoveragePluginConfig ,
33
+ coverageScalacPluginVersion := DefaultScoverageVersion ,
33
34
libraryDependencies ++= {
34
35
if (coverageEnabled.value) Seq (
35
- OrgScoverage % (ScalacRuntimeArtifact + " _" + scalaBinaryVersion.value) % DefaultScoverageVersion ,
36
- OrgScoverage % (ScalacPluginArtifact + " _" + scalaBinaryVersion.value) % DefaultScoverageVersion % " scoveragePlugin->default(compile)"
36
+ OrgScoverage % (ScalacRuntimeArtifact + " _" + scalaBinaryVersion.value) % coverageScalacPluginVersion.value ,
37
+ OrgScoverage % (ScalacPluginArtifact + " _" + scalaBinaryVersion.value) % coverageScalacPluginVersion.value % " scoveragePlugin->default(compile)"
37
38
) else Nil
38
39
},
39
40
scalacOptions in(Compile , compile) ++= scoverageScalacOptions.value,
You can’t perform that action at this time.
0 commit comments