Extract uploadArchive gradle config into own file