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

Use custom plugin to publish zips to maven #343

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

Zhangxunmt
Copy link
Collaborator

Signed-off-by: Xun Zhang xunzh@amazon.com

Description

Follow opensearch-project/opensearch-build#1916 and use custom plugin to publish zips to maven.

Issues Resolved

306

Check List

Run ./gradlew publishPluginZipPublicationToZipStagingRepository, and identified the local-staging-repo directory created.

tree ./
./
├── libs
│   ├── opensearch-ml-2.0.0.0-SNAPSHOT.jar
│   └── opensearch-ml-2.0.0.0-rc1-SNAPSHOT.jar
├── local-staging-repo
│   └── org
│   └── opensearch
│   └── plugin
│   └── opensearch-ml-plugin
│   ├── 2.0.0.0-SNAPSHOT
│   │   ├── maven-metadata.xml
│   │   ├── maven-metadata.xml.md5
│   │   ├── maven-metadata.xml.sha1
│   │   ├── maven-metadata.xml.sha256
│   │   ├── maven-metadata.xml.sha512
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.pom
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.pom.md5
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.pom.sha1
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.pom.sha256
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.pom.sha512
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.zip
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.zip.md5
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.zip.sha1
│   │   ├── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.zip.sha256
│   │   └── opensearch-ml-plugin-2.0.0.0-20220609.235643-1.zip.sha512
│   ├── maven-metadata.xml
│   ├── maven-metadata.xml.md5
│   ├── maven-metadata.xml.sha1
│   ├── maven-metadata.xml.sha256
│   └── maven-metadata.xml.sha512
├── lombok
│   └── effective-config
│   ├── lombok-main.config
│   └── lombok-test.config
├── private
│   └── opensearch_tmp
└── tmp
└── jar
└── MANIFEST.MF

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: Xun Zhang <xunzh@amazon.com>
@Zhangxunmt Zhangxunmt requested review from a team, lezzago and ylwu-amzn and removed request for lezzago June 10, 2022 00:17
@@ -238,6 +261,7 @@ configurations.all {
resolutionStrategy.force 'junit:junit:4.12'
resolutionStrategy.force 'org.apache.commons:commons-lang3:3.10'
resolutionStrategy.force 'commons-logging:commons-logging:1.2'
resolutionStrategy.force 'org.objenesis:objenesis:3.2'
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @Zhangxunmt this change is not part of plugin document, can you please check?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @prudhvigodithi, thanks for your comment! Yes it's not for this "publish to maven" change, but we will need it anyways in our next feature for adding a new algorithm dependency. It's no harm to include it here before the next PR of adding that algorithm.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, thanks @Zhangxunmt

@Zhangxunmt Zhangxunmt merged commit f6e8770 into opensearch-project:main Jun 13, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 13, 2022
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit f6e8770)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 13, 2022
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit f6e8770)
Zhangxunmt pushed a commit that referenced this pull request Jun 14, 2022
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit f6e8770)
Zhangxunmt pushed a commit that referenced this pull request Jun 14, 2022
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit f6e8770)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants