File tree 3 files changed +10
-5
lines changed
src/main/java/org/scoverage/plugin
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ under the License.
28
28
<modelVersion >4.0.0</modelVersion >
29
29
<groupId >org.scoverage</groupId >
30
30
<artifactId >scoverage-maven-plugin</artifactId >
31
- <version >1.4.2 -SNAPSHOT</version >
31
+ <version >1.4.11 -SNAPSHOT</version >
32
32
<packaging >maven-plugin</packaging >
33
33
34
34
<name >SCoverage Maven Plugin</name >
@@ -90,13 +90,14 @@ under the License.
90
90
<maven .version>2.2.1</maven .version>
91
91
<maven-plugin-plugin .version>3.6.0</maven-plugin-plugin .version>
92
92
93
- <scalac-scoverage-plugin .version>1.4.1</scalac-scoverage-plugin .version>
93
+ <scalac-scoverage-plugin .version>1.4.11</scalac-scoverage-plugin .version>
94
+ <scalac-scoverage-plugin .scala.version>2.12.15</scalac-scoverage-plugin .scala.version>
94
95
</properties >
95
96
96
97
<dependencies >
97
98
<dependency >
98
99
<groupId >org.scoverage</groupId >
99
- <artifactId >scalac-scoverage-plugin_2.12 </artifactId >
100
+ <artifactId >scalac-scoverage-plugin_${scalac-scoverage-plugin.scala.version} </artifactId >
100
101
<version >${scalac-scoverage-plugin.version} </version >
101
102
</dependency >
102
103
Original file line number Diff line number Diff line change 29
29
import org .apache .maven .plugins .annotations .Parameter ;
30
30
import org .apache .maven .project .MavenProject ;
31
31
32
+ import scala .Tuple2 ;
32
33
import scala .collection .JavaConverters ;
33
34
34
35
import scoverage .Coverage ;
@@ -149,7 +150,8 @@ public void execute() throws MojoFailureException
149
150
150
151
Coverage coverage = Serializer .deserialize ( coverageFile );
151
152
List <File > measurementFiles = Arrays .asList ( IOUtils .findMeasurementFiles ( dataDirectory ) );
152
- scala .collection .Set <Object > measurements = IOUtils .invoked ( JavaConverters .asScalaBuffer ( measurementFiles ) );
153
+ scala .collection .Set <Tuple2 <Object , String >> measurements =
154
+ IOUtils .invoked ( JavaConverters .asScalaBuffer ( measurementFiles ) );
153
155
coverage .apply ( measurements );
154
156
155
157
int branchCount = coverage .branchCount ();
Original file line number Diff line number Diff line change 44
44
import org .codehaus .plexus .util .StringUtils ;
45
45
46
46
import scala .Option ;
47
+ import scala .Tuple2 ;
47
48
import scala .collection .JavaConverters ;
48
49
import scala .collection .Seq ;
49
50
@@ -422,7 +423,8 @@ private void generateReports()
422
423
getLog ().info ( String .format ( "Reading scoverage measurements [%s*]..." ,
423
424
new File ( dataDirectory , Constants .MeasurementsPrefix () ).getAbsolutePath () ) );
424
425
List <File > measurementFiles = Arrays .asList ( IOUtils .findMeasurementFiles ( dataDirectory ) );
425
- scala .collection .Set <Object > measurements = IOUtils .invoked ( JavaConverters .asScalaBuffer ( measurementFiles ) );
426
+ scala .collection .Set <Tuple2 <Object , String >> measurements =
427
+ IOUtils .invoked ( JavaConverters .asScalaBuffer ( measurementFiles ) );
426
428
coverage .apply ( measurements );
427
429
428
430
getLog ().info ( "Generating coverage reports..." );
You can’t perform that action at this time.
0 commit comments