Build fix
[FIX] Multiple registrations to promise

Promises with multiple registrations now call their subscribers in the order
they are provided.
Fix gradle build