You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a line in JacocoSourceReportFactory that relativizes the paths of the source files. It uses new File(".") as root directory, which defaults to the current working directory of the JVM process that runs Gradle. There is no guarantee that this working directory is the root of the repository or the root of the Gradle project, as for example gradlew may run the process from another directory. When this happens, the coveralls task sends the absolute file paths to Coveralls. The line should be changed to use project.rootDir instead of new File(".").
The text was updated successfully, but these errors were encountered:
hurricup
added a commit
to hurricup/coveralls-gradle-plugin
that referenced
this issue
Aug 6, 2020
There is a line in
JacocoSourceReportFactory
that relativizes the paths of the source files. It usesnew File(".")
as root directory, which defaults to the current working directory of the JVM process that runs Gradle. There is no guarantee that this working directory is the root of the repository or the root of the Gradle project, as for examplegradlew
may run the process from another directory. When this happens, thecoveralls
task sends the absolute file paths to Coveralls. The line should be changed to useproject.rootDir
instead ofnew File(".")
.The text was updated successfully, but these errors were encountered: