-
Notifications
You must be signed in to change notification settings - Fork 59
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
Publish plugin zips to maven repo #384
Comments
@manishdev-amzn This change is targeted for 2.0 release and it should be a quick change. Can you please make the necessary changes as listed on the document to support publishing your zips to Maven? |
ack |
@bbarani Looking at the main issue, this is still not done for most plugins. Since we're almost at the the code freeze date, I doubt whether we're planning to roll this out in this release itself. Let me know if you think otherwise. |
Hey @ankitkala, the mechanism is same for all plugins, just to add the pluginzip plugin to |
Thanks, I was able to test it out and raise the PR. Since I have the PR out but we'll need to wait till we bump up the version to 2.1: https://github.com/opensearch-project/cross-cluster-replication/pull/398/files |
Hey @ankitkala thanks, it should also work for |
i had tried with 2.0.0-SNAPSHOT. same issue. |
can you check this 2.0.0-SNAPSHOT, 2.0.0-SNAPSHOT should have the plugin |
The PR linked above is on 2.0 and failing CI: https://github.com/opensearch-project/cross-cluster-replication/pull/399/files |
Hey @ankitkala can you please add more details on how its failing?, can you double check the build-tools version that depends on OpenSearch version? |
You can see the failures and the changes done in the PR itself: https://github.com/opensearch-project/cross-cluster-replication/pull/399/files |
This could be the issue https://github.com/opensearch-project/cross-cluster-replication/blob/main/build.gradle#L39 can you try with 2.0.1-SNAPSHOT ? |
Pushed the changes for 2.1+ |
Description
With existing setup the plugin jars are only published to maven repo, but not the generated plugin zips.
Related META issue
opensearch-project/opensearch-build#1916
Current Behavior
Existing all maven publications target the jar files to publish to maven, but not the generated distribution zips.
Expected Behavior
Along with plugin jars, plugin zips should also be published to maven repo with right maven coordinates, so user can download these plugins using dependancy model.
Steps To Reproduce
Proposed solution
A custom gradle plugin solution that can create the publication task for the zips to get published to local staging maven repo with right maven coordinates.
Add/Configure the custom gradle plugin openseearch.pluginzip to the gradle project and test the generated plugin zip's to upload to local maven repo.
More details on how to use the Plugin:
https://github.com/opensearch-project/opensearch-plugins/blob/main/BUILDING.md#opensearchpluginzip
The text was updated successfully, but these errors were encountered: