Skip to content

Commit

Permalink
Update build script to publish to maven local (#597)
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
opensearch-trigger-bot[bot] authored Oct 27, 2022
1 parent 515dcdb commit 949ea01
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 949ea01

Please sign in to comment.