Fixes a bug in logic in adding inputstream.
Updating gradle tools