Exclude non Android plugins from Gradle build (#40640)
Before this change, having an Android app depend on a plugin that has no android implementation resulted in a Gradle build failure. This scenario is likely to become more common if we're enabling federated plugins, as the package implementing just the desktop implementation of a plugin won't have an Android implementation. This changes the Gradle plugin to not try to build any plugins that doesn't have an android/build.gradle file.
This commit is contained in:
@@ -1021,6 +1021,7 @@ Future<void> _androidGradleTests(String subShard) async {
|
||||
await _runDevicelabTest('gradle_plugin_light_apk_test', env: env);
|
||||
await _runDevicelabTest('gradle_plugin_fat_apk_test', env: env);
|
||||
await _runDevicelabTest('gradle_r8_test', env: env);
|
||||
await _runDevicelabTest('gradle_non_android_plugin_test', env: env);
|
||||
}
|
||||
if (subShard == 'gradle2') {
|
||||
await _runDevicelabTest('gradle_plugin_bundle_test', env: env);
|
||||
|
||||
Reference in New Issue
Block a user