Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Move to another maven repository #130

Open
dimitarg opened this issue Mar 30, 2021 · 2 comments
Open

Move to another maven repository #130

dimitarg opened this issue Mar 30, 2021 · 2 comments

Comments

@dimitarg
Copy link

dimitarg commented Mar 30, 2021

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
Copy link
Author

dimitarg commented Apr 7, 2021

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.

@filosganga
Copy link
Contributor

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

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

Hopefully we will sync to central at some point

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants