http4s-micrometer-metrics icon indicating copy to clipboard operation
http4s-micrometer-metrics copied to clipboard

Move to another maven repository

Open dimitarg opened this issue 5 years ago • 2 comments

https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

... otherwise this can't be consumed past 1st May, IIUC. I think bintray themselves are suggesting https://central.sonatype.org/pages/ossrh-guide.html as an alternative.

I have a project of my own that needs to sort this. Once I get to it I'll comment on this issue what I had to do on my repo.

dimitarg avatar Mar 30 '21 08:03 dimitarg

Here's my build script at the point of a correctly functioning sonatype / maven central publish

https://github.com/dimitarg/weaver-test-extra/blob/cc809dcc8e8d1c8464dad1bf057d6297bc67ff9b/build.sbt

this uses sbt-pgp and sbt-sonatype and assumes you've already completed the one-time manual steps described in https://central.sonatype.org/publish/publish-guide/#initial-setup - although I imagine they might be unnecessary as you probably already have com.ovoenergy set up on OSSRH / maven central

The hard bit at least for me was to get GPG signatures working. Specifically note these lines in build sbt

"gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys A5131D4F48321D6E",
"echo $PGP_SECRET | base64 --decode --ignore-garbage | gpg --batch --passphrase $PGP_PASSPHRASE --import"

, where PGP_SECRET is a base64-encoded string of your non-ASCII-armored PGP secret key. At least that's how I got it to work with github actions (I think this might all work or not dependent on the gpg version you happen to run )

LMK if you need any more input.

I'm unfortunately a bit swamped right now and don't have the time to raise a PR, but hopefully this helps a little.

dimitarg avatar Apr 07 '21 16:04 dimitarg

@dimitarg Thank you. This has now been moved to:

https://kaluza.jfrog.io/artifactory/maven/ 

Hopefully we will sync to central at some point

filosganga avatar May 18 '21 06:05 filosganga