From 6cca56478e1505a2daca7f9f34a05151075d35d3 Mon Sep 17 00:00:00 2001 From: Naveen Date: Wed, 7 Dec 2022 22:03:13 +0000 Subject: [PATCH] Update build script to build JNI lib and then do assemble 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)