remove unnecessary stream closing, remove wrapper gradle task