From a58eec574e02b6f717be0ac2b9d00c61c71db8bc Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:07:09 -0800 Subject: [PATCH] add publishToMavenLocal task to fix zip plugin not pulished to maven local issue when running this script (#1121) (#1127) (cherry picked from commit e5cbe93c0e9cadebe2a30cba83f99ae8a3f8fe57) Signed-off-by: zane-neo Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index bd6ab31a6..4c4aaf128 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -77,6 +77,7 @@ echo "COPY ${distributions}/*.zip" mkdir -p $OUTPUT/plugins cp ${distributions}/*.zip ./$OUTPUT/plugins +./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER ./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 \ No newline at end of file +cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch