scoverage / gradle-scoverage

A plugin to enable the use of Scoverage in a gradle Scala project
Apache License 2.0
53 stars 38 forks source link

Cannot compileScoverageScala: Could not find org.scoverage:scalac-scoverage-runtime_2:1.4.1. #191

Closed vupham04 closed 1 year ago

vupham04 commented 1 year ago

Hi, I tried to run scoverage, using org.scoverage 7.0.0, scoverageScalaVersion = 2.12, scoverageVersion = 1.4.1, yet it shows an error that Could not find org.scoverage:scalac-scoverage-runtime_2:1.4.1

In maven: https://repo.maven.apache.org/maven2/org/scoverage/, I found no scalac-scoverage-runtime_2 folder

Could this error appear because we use $scalaBinaryVersion for scalac-scoverage-runtime rather than $scalaFullVersion?

https://github.com/scoverage/gradle-scoverage/blob/3021528fa7cfc46440a74f5a8df8cff18653cf42/src/main/groovy/org/scoverage/ScoveragePlugin.groovy#L73

vupham04 commented 1 year ago

apparently, org.scoverage 6.0.0 and above only supports gradle 7.0+. also scoverageScalaVersion should be set in the format 2.12.xx. (scoverageScalaVersion = 2.12.xx) for gradle-scoverage be able parse the appropriate package to download. because of that, I will close this issue