Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Added opensearch.pluginzip plugin #31
Added opensearch.pluginzip plugin #31
Changes from 3 commits
046bc8c
7e5f4ac
c0f6192
ddeb3db
dcb899d
4aa4a58
7674ea8
d8a7ee5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Sorry, where this setting comes from?
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.
@reta This is part of the plugin setup, usually all plugins managed build scripts or default build scripts run
assemble
task andpublish
tasks (specific to repo), example job-scheduler, but not directbuild
task, if called we need to exclude thisvalidatePluginZipPom
as generalbuild
task will include this, if this task called it will fail with POM validation with the errorIdeally we dont need to run this task as we define the POM values during actual publish.
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.
Just to add I have also added this point to the plugin usage document (PR under review)
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.
👍
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.
This still looks wrong to me, shouldn't we be fixing the POM by adding these fields? Open a new issue?
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.
It was fixed after adding
Then we dont need to exclude, I would say we can add the above template to the
build.gradle
and it's up-to the plugin team, if they want to exclude the the taskvalidatePluginZipPom
or add the POM fields in right way, I can update the info in the document as well, thoughts? @dblockThere 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.
excluding is better, rather than forcing user to add these POM fields as then it allow user to run
./gradlew build
, without any restrictions, @dblock @reta @bbarani @peterzhuamazonThere 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.
I don't think I understand. Plugins should all look the same and have all the right/same info in the POM. Why wouldn't this be in all 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.
some plugins do not have all of these settings @dblock, but in our case to publish zips we dont need this task
validatePluginZipPom
.This is coming from
PomValidationTask (org.opensearch.gradle.precommit.PomValidationTask)