Skip to content
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

Resolve dependency issues between jar and zip maven publications #39

Conversation

peterzhuamazon
Copy link
Member

@peterzhuamazon peterzhuamazon commented Sep 9, 2023

Description

Resolve dependency issues between jar and zip maven publications

Issues Resolved

opensearch-project/opensearch-build#3743
Closes #38

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.

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
@peterzhuamazon
Copy link
Member Author

Results:


% ls ~/.m2/repository/org/opensearch/opensearch-custom-codecs/2.10.0.0
opensearch-custom-codecs-2.10.0.0.jar  opensearch-custom-codecs-2.10.0.0-javadoc.jar  opensearch-custom-codecs-2.10.0.0.module  opensearch-custom-codecs-2.10.0.0.pom  opensearch-custom-codecs-2.10.0.0-sources.jar


% cat ~/.m2/repository/org/opensearch/opensearch-custom-codecs/2.10.0.0/opensearch-custom-codecs-2.10.0.0.pom | grep group
  <groupId>org.opensearch</groupId>
      <groupId>com.github.luben</groupId>
          <groupId>*</groupId>


% ls build/local-staging-repo/org/opensearch/opensearch-custom-codecs/2.10.0.0
opensearch-custom-codecs-2.10.0.0.jar         opensearch-custom-codecs-2.10.0.0-javadoc.jar         opensearch-custom-codecs-2.10.0.0.module         opensearch-custom-codecs-2.10.0.0.pom         opensearch-custom-codecs-2.10.0.0-sources.jar
opensearch-custom-codecs-2.10.0.0.jar.md5     opensearch-custom-codecs-2.10.0.0-javadoc.jar.md5     opensearch-custom-codecs-2.10.0.0.module.md5     opensearch-custom-codecs-2.10.0.0.pom.md5     opensearch-custom-codecs-2.10.0.0-sources.jar.md5
opensearch-custom-codecs-2.10.0.0.jar.sha1    opensearch-custom-codecs-2.10.0.0-javadoc.jar.sha1    opensearch-custom-codecs-2.10.0.0.module.sha1    opensearch-custom-codecs-2.10.0.0.pom.sha1    opensearch-custom-codecs-2.10.0.0-sources.jar.sha1
opensearch-custom-codecs-2.10.0.0.jar.sha256  opensearch-custom-codecs-2.10.0.0-javadoc.jar.sha256  opensearch-custom-codecs-2.10.0.0.module.sha256  opensearch-custom-codecs-2.10.0.0.pom.sha256  opensearch-custom-codecs-2.10.0.0-sources.jar.sha256
opensearch-custom-codecs-2.10.0.0.jar.sha512  opensearch-custom-codecs-2.10.0.0-javadoc.jar.sha512  opensearch-custom-codecs-2.10.0.0.module.sha512  opensearch-custom-codecs-2.10.0.0.pom.sha512  opensearch-custom-codecs-2.10.0.0-sources.jar.sha512


% cat build/local-staging-repo/org/opensearch/opensearch-custom-codecs/2.10.0.0/opensearch-custom-codecs-2.10.0.0.pom | grep group
  <groupId>org.opensearch</groupId>
      <groupId>com.github.luben</groupId>
          <groupId>*</groupId>

% ls build/local-staging-repo/org/opensearch/plugin/opensearch-custom-codecs/2.10.0.0/
opensearch-custom-codecs-2.10.0.0.pom      opensearch-custom-codecs-2.10.0.0.pom.sha1    opensearch-custom-codecs-2.10.0.0.pom.sha512  opensearch-custom-codecs-2.10.0.0.zip.md5   opensearch-custom-codecs-2.10.0.0.zip.sha256
opensearch-custom-codecs-2.10.0.0.pom.md5  opensearch-custom-codecs-2.10.0.0.pom.sha256  opensearch-custom-codecs-2.10.0.0.zip         opensearch-custom-codecs-2.10.0.0.zip.sha1  opensearch-custom-codecs-2.10.0.0.zip.sha512


% cat build/local-staging-repo/org/opensearch/plugin/opensearch-custom-codecs/2.10.0.0/opensearch-custom-codecs-2.10.0.0.pom | grep group
  <groupId>org.opensearch.plugin</groupId>

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
build.gradle Outdated Show resolved Hide resolved
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Copy link
Member

@andrross andrross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is line 49 correct?

group 'org.opensearch'

@andrross andrross merged commit 64e4332 into opensearch-project:main Sep 9, 2023
7 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 9, 2023
* Resolve dependency issues between jar and zip maven publications

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Remove comments

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Tweak typo

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

---------

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 64e4332)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 9, 2023
* Resolve dependency issues between jar and zip maven publications

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Remove comments

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Tweak typo

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

---------

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 64e4332)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@peterzhuamazon
Copy link
Member Author

Is line 49 correct?

group 'org.opensearch'

Yes, that is by design so group vs groupid is different here.

@peterzhuamazon peterzhuamazon deleted the update-jarzip-gradle-maven-publishing-dependencies branch September 9, 2023 03:47
andrross pushed a commit that referenced this pull request Sep 9, 2023
#41)

* Resolve dependency issues between jar and zip maven publications



* Remove comments



* Tweak typo



---------


(cherry picked from commit 64e4332)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
andrross pushed a commit that referenced this pull request Sep 9, 2023
#40)

* Resolve dependency issues between jar and zip maven publications



* Remove comments



* Tweak typo



---------


(cherry picked from commit 64e4332)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Distribution Build Failed for custom-codecs-2.10.0
2 participants