Skip to content

Commit 21f6adf

Browse files
authored
Fix for checkCoverage not being defined. (#1394)
1 parent 7cedbb4 commit 21f6adf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

buildSrc/src/main/groovy/com/google/firebase/gradle/plugins/ci/ContinuousIntegrationPlugin.groovy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package com.google.firebase.gradle.plugins.ci
1616

17+
import com.google.firebase.gradle.plugins.FirebaseLibraryPlugin
1718
import org.gradle.api.Plugin
1819
import org.gradle.api.Project
1920
import org.gradle.api.Task
@@ -102,6 +103,10 @@ class ContinuousIntegrationPlugin implements Plugin<Project> {
102103
tasks.maybeCreate('check')
103104
tasks.maybeCreate('deviceCheck')
104105
}
106+
107+
if (!isFirebaseLibrary(it)) {
108+
tasks.maybeCreate('checkCoverage')
109+
}
105110
}
106111
}
107112

@@ -167,4 +172,8 @@ class ContinuousIntegrationPlugin implements Plugin<Project> {
167172
private static boolean isAndroidProject(Project project) {
168173
ANDROID_PLUGINS.find { plugin -> project.plugins.hasPlugin(plugin) }
169174
}
175+
176+
private static boolean isFirebaseLibrary(Project project) {
177+
project.plugins.hasPlugin(FirebaseLibraryPlugin.class)
178+
}
170179
}

0 commit comments

Comments
 (0)