From cc7412392f614a5566354d64f940dc5bad2abaeb Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Fri, 15 Jul 2022 07:44:40 -0400 Subject: [PATCH] default build.sh logic add for Gradle custom java zippublish plugin (#1999) * Added custom plugin eval logic Signed-off-by: pgodithi * fixed failure checks Signed-off-by: pgodithi * changed to query system property Signed-off-by: pgodithi * Added system property for version check Signed-off-by: pgodithi * Added gradle props Signed-off-by: pgodithi * publish task name change to publishPluginZipPublicationToZipStagingRepository Signed-off-by: pgodithi * Add publishPluginZipPublicationToZipStagingRepository to default build script Signed-off-by: pgodithi * Add publishPluginZipPublicationToZipStagingRepository to default build script Signed-off-by: pgodithi --- scripts/default/opensearch/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/default/opensearch/build.sh b/scripts/default/opensearch/build.sh index 5cf8540650..3fbe1755b9 100755 --- a/scripts/default/opensearch/build.sh +++ b/scripts/default/opensearch/build.sh @@ -77,3 +77,8 @@ distributions="$(dirname "${zipPath}")" echo "COPY ${distributions}/*.zip" mkdir -p $OUTPUT/plugins cp ${distributions}/*.zip ./$OUTPUT/plugins + +# Publish plugin zips to maven +./gradlew publishPluginZipPublicationToZipStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER +mkdir -p $OUTPUT/maven/org/opensearch +cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch