Skip to content

Add Maven Central publishing configuration#462

Open
keyboardDrummer wants to merge 1 commit into
mainfrom
publish-to-maven-central
Open

Add Maven Central publishing configuration#462
keyboardDrummer wants to merge 1 commit into
mainfrom
publish-to-maven-central

Conversation

@keyboardDrummer

Copy link
Copy Markdown
Contributor

Configure the four consumer-facing modules (library, common, javac-plugin,
verifier) for publication to Maven Central via the Sonatype Central Portal.

  • Set the published group id to io.github.strata-org, verified through the
    strata-org GitHub org (no domain ownership required). Java package names
    remain org.strata.jverify.*
  • Scope publishing to library, common, javac-plugin and verifier. common is
    included because javac-plugin and verifier depend on it; omitting it would
    leave their POMs referencing a coordinate absent from Central.
  • Add the POM metadata, sources jar, javadoc jar and GPG signing that Central
    requires. Signing is skipped for SNAPSHOT builds.
  • Make the version a -Pversion property (default 0.1.0-SNAPSHOT) so releases
    use a real, non-SNAPSHOT version. Central rejects SNAPSHOTs.
  • Add publishToStaging and centralBundle tasks that stage all modules and zip
    them into the bundle the Central Portal upload API expects.
  • Update sample-project and guide coordinates to the new group id and 0.1.0
    version line.
  • Document the end-to-end release process in docs/PUBLISHING.md.

Configure the four consumer-facing modules (library, common, javac-plugin,
verifier) for publication to Maven Central via the Sonatype Central Portal.

- Set the published group id to io.github.strata-org, verified through the
  strata-org GitHub org (no domain ownership required). Java package names
  remain org.strata.jverify.*
- Scope publishing to library, common, javac-plugin and verifier. common is
  included because javac-plugin and verifier depend on it; omitting it would
  leave their POMs referencing a coordinate absent from Central.
- Add the POM metadata, sources jar, javadoc jar and GPG signing that Central
  requires. Signing is skipped for SNAPSHOT builds.
- Make the version a -Pversion property (default 0.1.0-SNAPSHOT) so releases
  use a real, non-SNAPSHOT version. Central rejects SNAPSHOTs.
- Add publishToStaging and centralBundle tasks that stage all modules and zip
  them into the bundle the Central Portal upload API expects.
- Update sample-project and guide coordinates to the new group id and 0.1.0
  version line.
- Document the end-to-end release process in docs/PUBLISHING.md.
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