-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild-libs.sh
More file actions
31 lines (26 loc) · 1.13 KB
/
Copy pathbuild-libs.sh
File metadata and controls
31 lines (26 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
# 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