From 9f22a6a72e7d1aaf64f5075561011de428c6734b Mon Sep 17 00:00:00 2001 From: Naveen Tatikonda Date: Wed, 7 Dec 2022 16:52:50 -0600 Subject: [PATCH] Update build script to build JNI lib and then do assemble (#659) Signed-off-by: Naveen Signed-off-by: Naveen --- scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 22a030413..0aaa56659 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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)