optimize gradle uploadArchive configurations