-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild-libs.sh
24 lines (20 loc) · 946 Bytes
/
build-libs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Skip Prism mock test. If you want to enable this (SKIP_MOCK_TESTS=false), you will need to setup Prism server.
# You can follow the error instructions on how to setup and run a server prism
export SKIP_MOCK_TESTS=true
# Clean build to remove previous jar and any artifacts
./gradlew clean
# Code linting
./gradlew :llama-stack-client-kotlin-core:spotlessApply
./gradlew :llama-stack-client-kotlin-client-okhttp:spotlessApply
./gradlew :llama-stack-client-kotlin:spotlessApply
./gradlew :llama-stack-client-kotlin-client-local:spotlessApply
./gradlew build
# Copy jars
mkdir -p build-jars
BUILD_JARS_DIR=$(pwd)/build-jars
export BUILD_JARS_DIR
echo $BUILD_JARS_DIR
cp -a llama-stack-client-kotlin/build/libs/. $BUILD_JARS_DIR
cp -a llama-stack-client-kotlin-client-okhttp/build/libs/. $BUILD_JARS_DIR
cp -a llama-stack-client-kotlin-core/build/libs/. $BUILD_JARS_DIR
cp -a llama-stack-client-kotlin-client-local/build/libs/. $BUILD_JARS_DIR