pro icon indicating copy to clipboard operation
pro copied to clipboard

Maven publication?

Open ice1000 opened this issue 4 years ago • 5 comments

Have you considered a plugin to publish to maven local/maven central?

ice1000 avatar Sep 10 '21 04:09 ice1000

It can not be a plugin, because it embeds it's own JDK, so build can be 100% reproducible.

forax avatar Nov 10 '21 18:11 forax

Well, I was talking about automatic uploading of build artifacts.

ice1000 avatar Nov 10 '21 18:11 ice1000

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) ?

forax avatar Nov 10 '21 18:11 forax

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

ice1000 avatar Nov 10 '21 19:11 ice1000

@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.

talios avatar Nov 10 '21 20:11 talios