diff --git a/build.sbt b/build.sbt index 31788a2..fd84a6e 100644 --- a/build.sbt +++ b/build.sbt @@ -4,7 +4,7 @@ organization := "com.github.carueda" name := "tscfg" version := "1.1.1" scalaVersion := "3.3.3" -crossScalaVersions := Seq("2.13.9", "3.3.3", "3.4.3", "3.5.0") +crossScalaVersions := Seq("2.13.9", "3.3.3") buildInfoKeys := Seq[BuildInfoKey](version) buildInfoPackage := "tscfg" diff --git a/misc/publish.md b/misc/publish.md index 3d69b7e..e3efb8c 100644 --- a/misc/publish.md +++ b/misc/publish.md @@ -1,5 +1,5 @@ 2024-08 -Making this work again. +Trying to make this work again. Created new PGP: ``` @@ -7,68 +7,39 @@ Created new PGP: [keyboxd] --------- -pub ed25519 2024-08-23 [SC] [expires: 2027-08-23] - 61E2C83F241206B722B7A09E348B4CEE2DC47A1B +pub ed25519 2024-08-23 [SC] [expires: ....] + ..... uid [ultimate] Central Repo -sub cv25519 2024-08-23 [E] [expires: 2027-08-23] +sub cv25519 2024-08-23 [E] [expires: ...] ``` - -Uploaded the key to the keyserver: +Uploaded it: ``` -❯ gpg --keyserver keyserver.ubuntu.com --send-keys 348B4CEE2DC47A1B +❯ gpg --keyserver keyserver.ubuntu.com --send-keys ..... ``` -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 +Per https://central.sonatype.org/publish/generate-token/, +created a token, I captured in `~/.sbt/1.0/sonatype.sbt`: +``` credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "the-token-user", "the-token-pw") ``` - -Then: +But no luck: +``` +sbt clean +sbt +publishSigned +sbt +sonatypeBundleRelease ``` -> +publishSigned -> +sonatypeBundleRelease +for not clear reason, getting "error [Sonatype] [STAGE_FAILURE] Failed to promote the repository") +with the sonatype UI showing: ``` +typeId RepositoryWritePolicy +failureMessage Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/com/github/carueda/tscfg_3/1.1.1/tscfg_3-1.1.1.jar' +``` +`:(` 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 -- https://github.com/xerial/sbt-sonatype - -One-time steps: - - > set pgpReadOnly := false - > pgp-cmd gen-key - > pgp-cmd send-key me@example.net hkp://pool.sks-keyservers.net - -`~/.sbt/version/sonatype.sbt`: - - credentials += Credentials("Sonatype Nexus Repository Manager", - "oss.sonatype.org", - "", - "") - -Then: - - > reload - > clean - > assembly - > +package - > +publishSigned - > +sonatypeBundleRelease