@@ -8,10 +8,10 @@ import scales.report.{ScalesHtmlWriter, CoberturaXmlWriter, ScalesXmlWriter}
8
8
9
9
object ScalesSbtPlugin extends Plugin {
10
10
11
- val scalesReportDir = SettingKey [File ](" scales -report-dir" )
11
+ val scalesReportDir = SettingKey [File ](" scoot -report-dir" )
12
12
13
- lazy val Scales = config(" scales " )
14
- lazy val ScalesTest = config(" scales -test" ) extend Scales
13
+ lazy val Scales = config(" scoot " )
14
+ lazy val ScalesTest = config(" scoot -test" ) extend Scales
15
15
16
16
lazy val instrumentSettings = {
17
17
inConfig(Scales )(Defaults .compileSettings) ++
@@ -24,16 +24,16 @@ object ScalesSbtPlugin extends Plugin {
24
24
resolvers += Resolver .url(" local-ivy" ,
25
25
new URL (" file://" + Path .userHome.absolutePath + " /.ivy2/local" ))(Resolver .ivyStylePatterns),
26
26
27
- libraryDependencies += " com.sksamuel.scala-scales " %% " scalac-scales -plugin" % " 0.90 .0" % Scales .name,
27
+ libraryDependencies += " com.sksamuel.scoot " %% " scalac-scoot -plugin" % " 0.91 .0" % Scales .name,
28
28
29
29
sources in Scales <<= (sources in Compile ),
30
30
sourceDirectory in Scales <<= (sourceDirectory in Compile ),
31
31
32
32
scalacOptions in Scales <++= (name in Scales , baseDirectory in Scales , update) map {
33
33
(n, b, report) =>
34
- val scalesDeps = report matching configurationFilter(" scales " )
35
- scalesDeps.find(_.getAbsolutePath.contains(" scalac-scales -plugin" )) match {
36
- case None => throw new Exception (" Fatal: scalac-scales -plugin not in libraryDependencies" )
34
+ val scalesDeps = report matching configurationFilter(" scoot " )
35
+ scalesDeps.find(_.getAbsolutePath.contains(" scalac-scoot -plugin" )) match {
36
+ case None => throw new Exception (" Fatal: scalac-scoot -plugin not in libraryDependencies" )
37
37
case Some (classpath) =>
38
38
Seq (
39
39
" -Xplugin:" + classpath.getAbsolutePath,
@@ -93,13 +93,13 @@ object ScalesSbtPlugin extends Plugin {
93
93
val targetDirectory = new File (" target/coverage-report" )
94
94
targetDirectory.mkdirs()
95
95
96
- println(" Generating ScalesXML report..." )
96
+ println(" Generating ScootXML report..." )
97
97
ScalesXmlWriter .write(coverage, targetDirectory)
98
98
99
99
println(" Generating CoberturaXML report..." )
100
100
CoberturaXmlWriter .write(coverage, targetDirectory)
101
101
102
- println(" Generating Scales HTML report..." )
102
+ println(" Generating ScootHTML report..." )
103
103
ScalesHtmlWriter .write(coverage, targetDirectory)
104
104
}
105
105
}
0 commit comments