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

[FEATURE] Support Java jar publishing to remote Maven repository #9

Open
karenyrx opened this issue Mar 20, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@karenyrx
Copy link
Collaborator

Is your feature request related to a problem?

The repository currently generates a maven jar opensearch-protobuf-1.0.0.jar under generated/maven/. This jar should be uploaded to the Maven central repository and also the snapshot repository.

The jar will then be used in a build.gradle file like:

dependencies {
  implementation "org.opensearch.protobuf:opensearch-protobuf:1.0.0"
}

opensearch-project/.github#305 is the ticket to configure permissions to upload to Maven. GHA/Build files within this repository will also be needed.

What solution would you like?

Publish the existing bazel-generated artifacts to maven. Perhaps follow something like https://medium.com/wix-engineering/how-to-publish-artifacts-from-bazel-to-maven-central-71da0cf990f5

What alternatives have you considered?

Gradle instead of Bazel for publishing. This has not been fully ruled out yet, but for consistency with other languages in this repository, Bazel is slightly more preferred

Do you have any additional context?

This is needed by April 8th (latest) to meet the OS 3.0 beta release code completion deadline. It will be used by all GRPC PRs in core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants