How do I deploy a local jar that currently lives in /lib/ to a repo that we maintain (Nexus);
With maven I could put this in a shell script and deploy (from: http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html)
mvn deploy:deploy-file -DgroupId= \
With Gradle, I have read this section: http://www.gradle.org/docs/current/userguide/maven_plugin.html
But my answer is not found there.
There is one section that provides this sample code: http://www.gradle.org/docs/current/userguide/maven_plugin.html
But this only applies to my current project jar. I have a 3rd party jar that I downloaded that is not available in any maven repo, but I can push to nexus.
I can install Maven to do this, it is a twice a year thing, but is there a way to do this in Gradle?
There is no easy way to do this with Gradle. You’d have to script your own solution. If you do this twice a year, I’d recommend to do it via the Nexus UI.
With Gradle, is it best/preferred/recommended to use Maven style repos? What is recommended?
We have a Salesforce web services API jar that we must generate (from some sales force utils that queries things there) every two weeks (or more);
I want to script the generation of the jar and have it pushed to a repo (of any kind) we can switch if there is a more highly recommended repo than maven style repos.
How is this related to the original question (deploy a 3rd party jar to our Nexus)?
We do this as part of our regular build and release processes. Both snapshot and release artifacts are published to our local nexus repo using maven. This is the main reason we’re not using gradle for new projects as it requires additional work to complete the workflow.