-
Notifications
You must be signed in to change notification settings - Fork 113
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
Uses custom plugin to publish zips to maven #366
Conversation
Codecov Report
@@ Coverage Diff @@
## main #366 +/- ##
============================================
- Coverage 75.30% 75.21% -0.09%
- Complexity 2156 2158 +2
============================================
Files 263 263
Lines 12413 12429 +16
Branches 1974 1975 +1
============================================
+ Hits 9347 9348 +1
- Misses 1980 1999 +19
+ Partials 1086 1082 -4
Continue to review full report at Codecov.
|
Wondering do we need to exclude task in settings.gradle like here |
The zip publishing is purely for the build dependency graph right? If so do we have to publish the zips to all plugins even the leaf plugins like the IM in that graph or is there any use case that enables with publishing these zips other than build dependency graph for the opensearch plugins? |
@thalurur For BWC testing we utilize a zip. The only use case I can see for the leaves would be if we hope to utilize the maven zips in the future for our BWC testing |
Signed-off-by: Clay Downs <[email protected]>
I believe that we do not. According to step 7 in the setup guide for this plugin, "Exclude the following tasks in settings.gradle file, if the build script exists for the plugin and has the tasks publishToMavenLocal and publishAllPublicationsToStagingRepository, ..." |
cc: @prudhvigodithi That link in job-scheduler looks suspicious, care to track it down? not sure why that was needed |
Hey @dblock from document point 7, this targets |
scripts/build.sh
Outdated
|
||
echo "COPY ${distributions}/*.zip" | ||
mkdir -p $OUTPUT/plugins | ||
cp ${distributions}/*.zip ./$OUTPUT/plugins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be also adding
mkdir -p $OUTPUT/maven/org/opensearch
cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch
As this will put the local staged maven artifacts under $OUTPUT/maven/org/opensearch
and CI will be using this folder $OUTPUT/maven/org/opensearch
to publish to end maven
Please refer to job-scheduler
https://github.com/opensearch-project/job-scheduler/blob/main/scripts/build.sh#L77-L79
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Please try to run the the build component locally, once passed tar/builds/opensearch/maven/org/opensearch/plugin/opensearch-index-management/
folder should be created and zip should be added as per maven coordinates.
Thank you
Signed-off-by: Clay Downs <[email protected]>
* Uses custom plugin to publish zips to maven Signed-off-by: Clay Downs <[email protected]> * Adds build.sh file Signed-off-by: Clay Downs <[email protected]> * Revises build.sh Signed-off-by: Clay Downs <[email protected]>
Signed-off-by: Clay Downs [email protected]
Issue #, if available:
#348
Description of changes:
Adds the custom plugin to publish zips to maven to the build.gradle. Introduces a custom build.sh script.
CheckList:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.