Skip to content

Commit ab3ef71

Browse files
committed
Removed more sbt 0.12.x isms
1 parent bcbff58 commit ab3ef71

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: src/main/scala/scoverage/ScoverageSbtPlugin.scala

+4-5
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ class ScoverageSbtPlugin extends sbt.Plugin {
5050
scoverageOutputHTML := true,
5151
scoverageOutputCobertua := true,
5252

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)
5655
scoverageDeps.find(_.getAbsolutePath.contains(ScalacArtifact)) match {
5756
case None => throw new Exception(s"Fatal: $ScalacArtifact not in libraryDependencies")
5857
case Some(classpath) =>
5958
Seq(
6059
"-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"
6362
)
6463
}
6564
},

0 commit comments

Comments
 (0)