When introducing Gradle to other people, often the first question that gets asked what would be the easiest way to push to a maven repository.
I tried to produce the simplest script that would let you pull and push single files (or rather artifacts). I also wanted to do it without the java plugin, so “no components.java”. Here’s the result, please let me know if there was an even shorter way (i.e. without the AbstractArchiveTask)