Skip to content

Commit 14b953b

Browse files
committed
detect the location of the reporting class rather than rely on the buildscript classpath
1 parent 7dfcf94 commit 14b953b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/groovy/org/scoverage/ScoverageExtension.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class ScoverageExtension {
151151
}
152152

153153
t.tasks[ScoveragePlugin.REPORT_NAME].configure {
154-
classpath = project.buildscript.configurations.classpath + configuration
154+
def classLocation = ScoverageExtension.class.getProtectionDomain().getCodeSource().getLocation()
155+
classpath = project.files(classLocation.file) + configuration
155156
main = 'org.scoverage.ScoverageReport'
156157
args = [
157158
extension.sources,

0 commit comments

Comments
 (0)