Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(java): publishing to maven central requires more publishing metadata #5332

Merged
merged 6 commits into from
Dec 4, 2024

Conversation

dsinghvi
Copy link
Member

@dsinghvi dsinghvi commented Dec 4, 2024

Description

This PR adds additional logic to the java generator to properly publish to maven central with a secret key, passphrase, and key id. If these are not specified in generators.yml then we publish to OSSRH instead which doesn't require these.

Changes Made

  • Updated build.gradle generation to add a variety of custom blocks

Testing

  • Unit tests added/updated
  • Manual testing completed

@dsinghvi dsinghvi marked this pull request as ready for review December 4, 2024 17:55
@@ -3,6 +3,7 @@ plugins {
id 'maven-publish'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to this file are the critical piece

Copy link

github-actions bot commented Dec 4, 2024

🌿 Preview your docs: https://fern-preview-ae9e1c1a-8805-475d-b280-421895e0dc2b.docs.buildwithfern.com/learn

@dsinghvi dsinghvi merged commit 2f63755 into main Dec 4, 2024
53 of 56 checks passed
@dsinghvi dsinghvi deleted the dsinghvi/fix-java-publishing-to-maven-central branch December 4, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants