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

ci: publish to Maven central #57

Merged
merged 7 commits into from
Oct 21, 2024
Merged

ci: publish to Maven central #57

merged 7 commits into from
Oct 21, 2024

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Oct 11, 2024

This PR adds the relevant configuration, as well as a GH workflow, to publish the Kotlin client to maven central when we tac a new build.

Some things to note:

  1. I had to upgrade the major version of some of the android plugins because of compatibility issues with the plugin used to perform the deployment
  2. I had to add a global gradle.properties file at ~/.gradle with the following information (the actual values for which can be found in bitwarden).
signing.keyId=...
signing.password=...
signing.secretKeyRingFile=/Users/matthewelwell/.gnupg/secring.gpg

mavenCentralUsername=...
mavenCentralPassword=...

Actually doing the publishing can be completed by running:

./gradlew publishAllPublicationsToMavenCentralRepository

Useful links:

@matthewelwell matthewelwell marked this pull request as ready for review October 18, 2024 12:26
@matthewelwell matthewelwell requested review from gazreese, a team and gagantrivedi and removed request for a team October 18, 2024 12:34
@matthewelwell matthewelwell changed the title ci: add configuration to add publishAllPublicationsToMavenCentralRepository task ci: publish to Maven central Oct 18, 2024
@khvn26 khvn26 merged commit ed4fade into main Oct 21, 2024
2 checks passed
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.

3 participants