Skip to content

Commit

Permalink
Update build script to build JNI lib and then do assemble (#659)
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen <[email protected]>

Signed-off-by: Naveen <[email protected]>
  • Loading branch information
naveentatikonda authored Dec 7, 2022
1 parent b6f89a1 commit 9f22a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ fi

# Build k-NN lib and plugin through gradle tasks
cd $work_dir
# Gradle build is used here to replace gradle assemble due to build will also call cmake and make before generating jars
./gradlew build --no-daemon --refresh-dependencies -x integTest -x test -x jacocoTestReport -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
./gradlew buildJniLib
./gradlew assemble --no-daemon --refresh-dependencies -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT

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

0 comments on commit 9f22a6a

Please sign in to comment.