Easy. Here is a sample build.gradle file that configures a Gradle build to upload artifacts to a Nexus Staging repository. All you need to do is configure your build to publish artifacts to the Staging Profile's URL and provide the appropriate credentials. Once you've configured you
Once you have configured the uploadArchive section as shown above you can run "gradle upload" to upload an artifact.
Note: This example uses the default admin credentials to publish and, as such, isn't demonstrating a best practice. If you are going to do this, please make sure to use a real user account that has been granted permissions to deploy.