This script publishes your android library to a maven repository using the gradle maven plugin. It creates the .aar, javadoc.jar, sources.jar and .pom and updates the maven-metadata.xml after uploading the files to the maven repository.
Call it the upload task with:
./gradlew uploadArchives
This script is like the uploadArtifactsSample. But it's purpose is to publish your android library with the Release Management of the Team Foundation Server in combination with Team Foundation Server Builds