Skip to content

Commit be1bf55

Browse files
committed
pass sourceroot at compilation time to resolve relative path issue
1 parent 1641c84 commit be1bf55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/groovy/org/scoverage/ScoveragePlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ class ScoveragePlugin implements Plugin<PluginAware> {
204204
scalaCompileOptions.additionalParameters.add('-Xplugin:' + pluginFiles.join(":"))
205205
}
206206
} else {
207+
parameters.add("-sourceroot:${project.rootDir.absolutePath}".toString())
207208
parameters.add("-coverage-out:${extension.dataDir.get().absolutePath}".toString())
208209
scalaCompileOptions.additionalParameters = parameters
209210
}

0 commit comments

Comments
 (0)