pro
pro copied to clipboard
Maven publication?
Have you considered a plugin to publish to maven local/maven central?
It can not be a plugin, because it embeds it's own JDK, so build can be 100% reproducible.
Well, I was talking about automatic uploading of build artifacts.
Oh, sorry, got it. Do you know if there is some API for that (like there is an API to get the dependency on Maven Central) ?
Oh, sorry, got it. Do you know if there is some API for that (like there is an API to get the dependency on Maven Central) ?
I dunno, but since you decide to give it up I don't think it matters anymore
@forax There's not an API for Central persae AFAIK - but many people use the oss.sonatype.org Nexus server - which provides validation and syncing to Maven central. Nexus, at it's lowest level can deploy artifacts with a simple HTTP POST:
curl -v -F r=releases -F hasPom=false -F e=$EXTENSION
-F g=$GROUP_ID -F a=$ARTIFACT_ID -F v=${version}
-F p=$PACKAGING -F file=@target/$FILENAME
-u user:password \
https://NEXUS_REPO_URL_HERE
Maybe that helps.