diff --git a/build.sbt b/build.sbt index 034b663..31788a2 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ enablePlugins(BuildInfoPlugin) organization := "com.github.carueda" name := "tscfg" -version := "1.1.0" +version := "1.1.1" scalaVersion := "3.3.3" crossScalaVersions := Seq("2.13.9", "3.3.3", "3.4.3", "3.5.0") diff --git a/misc/publish.md b/misc/publish.md index 5f757bb..3d69b7e 100644 --- a/misc/publish.md +++ b/misc/publish.md @@ -1,3 +1,51 @@ +2024-08 +Making this work again. + +Created new PGP: +``` +❯ gpg --list-keys + +[keyboxd] +--------- +pub ed25519 2024-08-23 [SC] [expires: 2027-08-23] + 61E2C83F241206B722B7A09E348B4CEE2DC47A1B +uid [ultimate] Central Repo +sub cv25519 2024-08-23 [E] [expires: 2027-08-23] +``` + +Uploaded the key to the keyserver: +``` +❯ gpg --keyserver keyserver.ubuntu.com --send-keys 348B4CEE2DC47A1B +``` +Then, after a few moments, checked +https://keyserver.ubuntu.com/pks/lookup?search=348B4CEE2DC47A1B&fingerprint=on&op=index +and the key was there. + +Now, for the account, per https://central.sonatype.org/publish/generate-token/, I created a token, +which I captured in `~/.sbt/1.0/sonatype.sbt`: + +```scala +credentials += Credentials("Sonatype Nexus Repository Manager", + "oss.sonatype.org", + "the-token-user", + "the-token-pw") +``` + +Then: +``` +> +publishSigned +> +sonatypeBundleRelease +``` + +Refs: + +- https://community.sonatype.com/t/401-content-access-is-protected-by-token-authentication-failure-while-performing-maven-release/12741/2 +- https://central.sonatype.org/publish/generate-token/ + + +---- +(old notes) + Refs: - https://www.scala-sbt.org/release/docs/Using-Sonatype.html