Skip to content

devops: publish to maven central, so a consumer needs no github token - #91

Open
landsman wants to merge 2 commits into
mainfrom
devops/maven-central
Open

landsman wants to merge 2 commits into
mainfrom
devops/maven-central

Conversation

@landsman

Copy link
Copy Markdown
Owner

A release tag now publishes all six modules to Maven Central through the Central Portal, signed, with sources and javadoc jars; the dependency line alone is then enough for a consumer, sbt and the Quarkus deployment jar included. Versions up to 0.5.0 stay on GitHub Packages, nothing new goes there. The same change as landsman/fio-api-java#16.

  • com.vanniktech.maven.publish 0.37.0 does the upload. It makes the sources and javadoc jars itself, so each module's withSourcesJar() / withJavadocJar() went.
  • automaticRelease = true and DeploymentValidation.PUBLISHED: the tag is the decision, and the job fails if Central refuses or never publishes.
  • Signing runs only when the key is in the environment, so make publish-local keeps working without one.
  • .docs/development.md has the one-time setup: namespace and signing key are shared with the other cz.insuit libraries, the four repository secrets are per repo.
  • Install docs, module READMEs, their assistant prompts and llms.txt drop the repository block and token, and show 0.6.0, the next release. The snapshot version, stale at 0.3.0, is now 0.6.0-SNAPSHOT.

How it was checked: publishToMavenLocal writes jar, sources, javadoc, .module and POM for all six. With a throwaway RSA key in the environment, each module got five .asc signatures and gpg --verify called each jar's good. make build green. Not run against the Portal yet: that needs the secrets, and the first try should be a -rc tag, since Central never deletes a version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant