Skip to content

Commit 50718fa

Browse files
committed
#70 - Scala 2.13.0-M5 support
Use version `1.4.0-M5` of `scalac-scoverage-plugin` dependency (version `1.4.0` is not released yet, version `1.4.0-M5` supports Scala version `2.13.0-M5`).
1 parent ba99b6a commit 50718fa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ under the License.
9090
<maven.version>2.2.1</maven.version>
9191
<maven-plugin-plugin.version>3.6.0</maven-plugin-plugin.version>
9292

93-
<scalac-scoverage-plugin.version>1.4.0-SNAPSHOT</scalac-scoverage-plugin.version>
93+
<scalac-scoverage-plugin.version>1.4.0-M5</scalac-scoverage-plugin.version>
9494
</properties>
9595

9696
<dependencies>

src/main/java/org/scoverage/plugin/SCoveragePreCompileMojo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public class SCoveragePreCompileMojo
8282
* <li>if specified, and equals {@code 2.10} or starts with {@code 2.10.} - <b>{@code scalac-scoverage-plugin_2.10}</b> will be used</li>
8383
* <li>if specified, and equals {@code 2.11} or starts with {@code 2.11.} - <b>{@code scalac-scoverage-plugin_2.11}</b> will be used</li>
8484
* <li>if specified, and equals {@code 2.12} or starts with {@code 2.12.} - <b>{@code scalac-scoverage-plugin_2.12}</b> will be used</li>
85+
* <li>if specified, and equals {@code 2.13.0-M5} - <b>{@code scalac-scoverage-plugin_2.13.0-M5}</b> will be used</li>
8586
* <li>if specified, but does not meet any of the above conditions or if not specified - plugin execution will be skipped</li>
8687
* </ul>
8788
*
@@ -248,6 +249,10 @@ else if ( "2.12".equals( resolvedScalaVersion ) || resolvedScalaVersion.startsWi
248249
{
249250
scalaBinaryVersion = "2.12";
250251
}
252+
else if ( "2.13.0-M5".equals( resolvedScalaVersion ) )
253+
{
254+
scalaBinaryVersion = "2.13.0-M5";
255+
}
251256
else
252257
{
253258
getLog().warn( String.format( "Skipping SCoverage execution - unsupported Scala version \"%s\"",

0 commit comments

Comments
 (0)