Skip to content

Commit

Permalink
Update build script to publish to maven local (#596)
Browse files Browse the repository at this point in the history
Updates build script to publish zip to local maven. This allows plugins
like neural search to pick up the zip as a dependency.

Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit 5323699)
  • Loading branch information
jmazanec15 authored and github-actions[bot] committed Oct 27, 2022
1 parent 515dcdb commit f9139d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ make opensearchknn_faiss opensearchknn_nmslib
cd $work_dir
./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
./gradlew publishPluginZipPublicationToZipStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
./gradlew publishPluginZipPublicationToMavenLocal -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER -Dopensearch.version=$VERSION

# Add lib to zip
zipPath=$(find "$(pwd)" -path \*build/distributions/*.zip)
Expand Down

0 comments on commit f9139d7

Please sign in to comment.