Fixed permission on gradle wrapper
Added uploadarchives in build script