-
Notifications
You must be signed in to change notification settings - Fork 66
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
[BUG] Gradle task order cause publishzip plugin to change groupid too early #501
Comments
Keeping this open from comment added by @lukas-vlcek #554 (comment). |
@prudhvigodithi @lukas-vlcek Running into a similar issue opensearch-project/neural-search#31. If we are setting groupId to "org.opensearch.plugin" for publishing, why can't we set it for the project group? This seemed to fix my issue here: opensearch-project/k-NN#596 |
@prudhvigodithi @vibrantvarun and I are hitting this issue trying to fix opensearch-project/job-scheduler#374 too. I have also noticed this now on security repo trying to do
and even with the |
We recently add publish zip plugin to notifications/core and notifications/notifications.
https://github.com/opensearch-project/notifications/blob/2.2/notifications/core/build.gradle#L23
https://github.com/opensearch-project/notifications/blob/2.2/notifications/core/build.gradle#L23
The problem being that the task of this plugin will trigger automatically no matter what task is being called.
And it will try to switch the groupid to
org.opensearch.plugin
permanently for plugin zips to be published on https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/See code:
https://github.com/opensearch-project/OpenSearch/pull/3252/files#diff-2a5851da2408bbeb8733433421917f253614fffe49449da0dd315a15ed8cdf74R43
This is not a problem if we only have 1-2 layers of gradle dependencies.
However, notifications plugin repository structure is set in a way that:
When running publish to maven local:
The publishzip task goes before the publishmavenlocal task and switch the groupid from
org.opensearch
toorg.opensearch.plugin
way too early.https://build.ci.opensearch.org/job/distribution-build-opensearch/5891/execution/node/240/log/
We currently have a temp fix in this PR: opensearch-project/opensearch-build#2431
It will comment out/disable apply publishzip plugin before publishtomavenlocal, then revert back so that publishzip can run after the mavenlocal task.
Thanks.
The text was updated successfully, but these errors were encountered: