Skip to content

Commit 2e52377

Browse files
committed
Do not fail on missing scoverage compile task in dependency
1 parent c5870c9 commit 2e52377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ class ScoveragePlugin implements Plugin<PluginAware> {
161161
it instanceof ScalaCompile
162162
}
163163
originalCompilationDependencies.each {
164-
def dependencyProjectCompileTask = it.project.tasks[COMPILE_NAME]
165-
def dependencyProjectReportTask = it.project.tasks[REPORT_NAME]
164+
def dependencyProjectCompileTask = it.project.tasks.findByName(COMPILE_NAME)
165+
def dependencyProjectReportTask = it.project.tasks.findByName(REPORT_NAME)
166166
if (dependencyProjectCompileTask != null) {
167167
compileTask.dependsOn(dependencyProjectCompileTask)
168168
// we don't want this project's tests to affect the other project's report

0 commit comments

Comments
 (0)