I often build 3rd party projects locally and then wish to deploy the results into a local artifact server like Nexus, so that the build artifacts can be shared across my team as well as our CI systems. This is easy to do with Maven, without having to modify the actual build file, by using command-line parameters which override the settings in the build file, since those will generally only be usable by the project owner. For example, regardless of the settings in the POM, I can publish to my own repo via:
mvn \ -Dgpg.skip \ -DaltDeploymentRepository=$REPO_ID::default::$REPO_URL \ source:jar javadoc:jar deploy
With Gradle, it seems like I have to edit the build file to achieve a similar result. Is this right?