File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,15 @@ class ScoverageSbtPlugin extends sbt.Plugin {
50
50
scoverageOutputHTML := true ,
51
51
scoverageOutputCobertua := true ,
52
52
53
- scalacOptions in Scoverage <++= (crossTarget in Compile , update, excludedPackages in Scoverage ) map {
54
- (target, report, excluded) =>
55
- val scoverageDeps = report matching configurationFilter(Scoverage .name)
53
+ scalacOptions in Scoverage := {
54
+ val scoverageDeps = update.value matching configurationFilter(Scoverage .name)
56
55
scoverageDeps.find(_.getAbsolutePath.contains(ScalacArtifact )) match {
57
56
case None => throw new Exception (s " Fatal: $ScalacArtifact not in libraryDependencies " )
58
57
case Some (classpath) =>
59
58
Seq (
60
59
" -Xplugin:" + classpath.getAbsolutePath,
61
- " -P:scoverage:excludedPackages:" + Option (excluded ).getOrElse(" " ),
62
- " -P:scoverage:dataDir:" + target .getAbsolutePath + " /scoverage-data"
60
+ " -P:scoverage:excludedPackages:" + Option ((excludedPackages in Scoverage ).value ).getOrElse(" " ),
61
+ " -P:scoverage:dataDir:" + crossTarget.value .getAbsolutePath + " /scoverage-data"
63
62
)
64
63
}
65
64
},
You can’t perform that action at this time.
0 commit comments