djspiewak / sbt-spiewak

A plugin which represents my personal SBT project baseline
Apache License 2.0
53 stars 20 forks source link

Move sonatype settings to ThisBuild #41

Closed SystemFw closed 3 years ago

SystemFw commented 3 years ago

Ok after spending 2 days on this: having these settings in Global works when you release from your local machine, but fails in CI with scm url missing. Obviously don't ask me why :)

FTR: I haven't done a final checking of publishing from my machine when they are in ThisBuild, nor have I tried with Bintray.

Gotta thank mpilquist for confirming he had to do the same and getting me unstuck :)

I'm probably going to PR longer instructions on how to setup your gpg key, since you need to generate a new one with no passphrase, and you won't be able to export an existing one which has a passphrase, as soon as I get some time

djspiewak commented 3 years ago

I think that if you do this, sbt-sonatype doesn't pick them up! Have you published anything with these changes? @mpilquist ? I definitely put them in Global intentionally originally, but maybe @xerial eventually fixed the scoping issues in the upstream plugin.

mpilquist commented 3 years ago

I tried Global like the readme said back when I was first adopting sbt-spiewak and ran in to issues. Ever since, I've used ThisBuild and everything has worked great.

SystemFw commented 3 years ago

Have you published anything with these changes

from CI, trying to publish without fails, and publishing with succeeds. Locally, publishing without succeeds, and I haven't tried with