Repository navigation
[release] publish under ai.gradient-labs groupId - #39
Draft
sharanmoore wants to merge 1 commit into
Draft
sharanmoore wants to merge 1 commit into
sharanmoore wants to merge 1 commit into
Conversation
Central rejects ai.gradientlabs: "Namespace 'ai.gradientlabs' is not allowed". That namespace maps to gradientlabs.ai, which we don't own. Our domain is gradient-labs.ai, so the namespace is ai.gradient-labs. Java packages stay ai.gradientlabs.*.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Namespace 'ai.gradientlabs' is not allowed.ai.gradientlabsmaps to the domain gradientlabs.ai, which we don't own. It's parked for sale on Afternic. Our domain is gradient-labs.ai, so our namespace has to beai.gradient-labs.ai.gradient-labs. It stays a draft until Sonatype has verified that namespace for our account.Background
This came out of PLA-176 (eMudhra CA compromise): we needed to publish a Java SDK release with a customer note about fixed JDKs. It turned out the SDK had never been released. There were no tags, nothing on Maven Central, and
release.ymlhad never run, even though the README advertises1.0.2on Maven Central.Releasing works by pushing a
v*tag:release.ymlsigns the artifacts with GPG and uploads them throughcentral-publishing-maven-pluginwithautoPublish. We've triedv1.0.2three times, and each run got one step further:d67cf8a0-13b1-4f52-a8ac-75f1187866b8-sources/-javadocjars (Central requires them)513d463b-0b33-43f3-981e-3663efdfba0fBundle has content that does NOT have a .pom file(plugin 0.6.0 bundledmaven-metadata-local.xmland_remote.repositories)778b3c97-90b8-427f-9401-086d6aebb173Namespace 'ai.gradientlabs' is not allowedfor all three artifactsCentral publishes a deployment all or nothing, so none of these published anything. All three poms still 404 on repo1.
Already proven to work: the GPG key and passphrase secrets (signing succeeds), the Sonatype credentials (upload succeeds and the Publisher API answers), and the bundle layout (passes validation since #37 and #38). The namespace is the only thing left.
What this PR changes
Maven coordinates only:
ai.gradientlabs→ai.gradient-labsinNot changed: the Java packages (
ai.gradientlabs.client…) and the example's logger config (ai.gradientlabs: DEBUG). Those are package names, not Maven coordinates, so customer imports are unaffected. Nobody can be using the old coordinates, because nothing was ever published.Sonatype's namespace docs confirm the hyphenated form: "The groupId should reverse the domain name exactly, even if the domain name contains hyphens… Hyphens are perfectly acceptable in groupIds." Verifying
ai.gradient-labsalso covers any futureai.gradient-labs.*groupIds.Testing:
mvn installon Maven 3.9 / JDK 25 (Docker). Build and tests pass, and the artifacts install underai/gradient-labs/{gradient-labs-parent,gradient-labs-client,gradient-labs-spring-boot-starter}.What's needed
ai.gradient-labsand copy the Verification Key it shows.SONATYPE_USERNAME/SONATYPE_PASSWORDsecrets.production-dns/dns.tf, resourcegoogle_dns_record_set.txt, the root TXT record. Add one entry to itsrrdatas, next to the existing verification records:"\"<verification key>\"",dig -t txt gradient-labs.ai +shortshould show the key.ai.gradient-labs. It should turn verified within a few minutes.v1.0.2tag to the merge commit:v1.0.2.release.ymlonly goes green once the release is live on Maven Central.Optional: the old
ai.gradientlabsnamespace request, if one exists in the portal, can't ever be verified, so it can be deleted.