Skip to content

Conversation

KristianDD
Copy link
Contributor

Fix cyclic task dependency with nativescript-plugin-firebase plugin

Description

Invoking bundleDebug reordered tasks in gradle build in a manner that caused the mergeDebugAssets to be executed before the metadata was generated by the buildMetadata task. This led to adding currentTask.dependsOn(buildMetadata);, which fixed the problem, but caused cyclic task dependency issues, when the nativescript-plugin-firebase plugin is used.

The solution is to use shouldRunAfter instead of dependsOn, which will fix the ordering in the general case, but ignore the rule if a cyclic dependency issue is detected. Reference for shouldRunAfter here.

Does your commit message include the wording below to reference a specific issue in this repo?

Related Pull Requests

#1217

Does your pull request have unit tests?

@vtrifonov vtrifonov merged commit adf4c2d into master Dec 3, 2018
@vtrifonov vtrifonov deleted the kddimitrov/fix-cyclic-task-dependency-error-with-firebase-plugin branch December 3, 2018 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants