-
Notifications
You must be signed in to change notification settings - Fork 29
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
Changes from 2 commits
046bc8c
7e5f4ac
c0f6192
ddeb3db
dcb899d
4aa4a58
7674ea8
d8a7ee5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
*/ | ||
|
||
rootProject.name = 'plugin-template' | ||
startParameter.excludedTaskNames=["validatePluginZipPom"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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
Ideally 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 commentThe 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 commentThe 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 commentThe 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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 |
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 like we just need
./gradlew publishPluginZipPublicationToZipStagingRepository
?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, I wanted to check opinions here, yes even this
./gradlew publishPluginZipPublicationToZipStagingRepository
can be added, but do we need to, I see there are multiple custom plugins already added to the template, but we dont run a plugin specific task, just./gradlew build
exists, do we even need to addpublishPluginZipPublicationToZipStagingRepository
to test the CI?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.
Ah I see, I think for the sake of checking that publishing works, we could publish to local repo:
publishPluginZipPublicationToZipLocalRepository
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.
Yes we can add
./gradlew publishPluginZipPublicationToZipStagingRepository
, also moving forward its better we add some validation by running the custom plugin tasks, so that way we can some evidence that the custom plugins task actually work, I will add./gradlew publishPluginZipPublicationToZipStagingRepository
to the CI.yaml.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.
👍