-
Notifications
You must be signed in to change notification settings - Fork 147
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
Conversation
Signed-off-by: Xun Zhang <xunzh@amazon.com>
@@ -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' |
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.
Hey @Zhangxunmt this change is not part of plugin document, can you please check?
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.
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.
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.
Got it, thanks @Zhangxunmt
Signed-off-by: Xun Zhang <xunzh@amazon.com> (cherry picked from commit f6e8770)
Signed-off-by: Xun Zhang <xunzh@amazon.com> (cherry picked from commit f6e8770)
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.