When uploading to a remote Maven repository I noticed (because disk was full) that Gradle uses the .m2 local repository in the user home dir to place a copy of the artifact to upload.
Is there a way to not have this copy? I upload also installation packages which are 250MB in size. So I get the disk quite quickly filled up.