I\'ve spent far more time on this than I care to admit. I am trying to just deploy one file into my Artifactory server from the command line. I\'m doing this using gradle
Instead of using the curl command, I recommend using the jrog CLI.
Download from here - https://www.jfrog.com/getcli/ and use the following command (make sure the file is executable) -
./jfrog rt u
Here is a simple example:
./jfrog rt u sample-service-1.0.0.jar libs-release-local/com/sample-service/1.0.0/
You will be prompt for credentials and the repo URL for the first time.
You can do lots of other stuff with this CLI tool, check out the detailed instructions here - https://www.jfrog.com/confluence/display/RTF/JFrog+CLI.