Skip to content

ci(publish): add Maven Central publishing to release workflow#19

Merged
kperry-godaddy merged 1 commit intomainfrom
ci-publish-to-maven-central
Mar 6, 2026
Merged

ci(publish): add Maven Central publishing to release workflow#19
kperry-godaddy merged 1 commit intomainfrom
ci-publish-to-maven-central

Conversation

@jhateley-godaddy
Copy link
Copy Markdown
Collaborator

This pull request introduces workflow automation for publishing to Maven Central upon a successful release, improves documentation clarity, and ensures proper build task dependencies for generated code. The most important changes are grouped below:

CI/CD Automation:

  • Added a new publish job to .github/workflows/release.yml that publishes artifacts to Maven Central, triggered only when a release is created by the release-please job. This includes setting up JDK, GPG, and securely passing credentials.
  • Exposed release_created, tag_name, and version as outputs from the release-please job for downstream workflow steps.

Build Process Improvements:

  • Updated ans-sdk-api/build.gradle.kts to ensure sourcesJar and javadocJar tasks depend on code generation (openApiGenerate), preventing build issues with missing generated sources.

Documentation Enhancements: (required for publish)

  • Improved the Javadoc for AnsClient to clarify the reference to DiscoveryClient as being from the discovery module.
  • Added a <caption> to the DNS resolver configuration table in the DnsResolverConfig Javadoc f

@jhateley-godaddy jhateley-godaddy force-pushed the ci-publish-to-maven-central branch from 9982e25 to e800fc1 Compare March 6, 2026 03:12
@kperry-godaddy kperry-godaddy merged commit ed44c01 into main Mar 6, 2026
2 checks passed
@kperry-godaddy kperry-godaddy deleted the ci-publish-to-maven-central branch March 6, 2026 15:17
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.

2 participants