mirror of https://github.com/grpc/grpc-java.git
buildscripts: generate android artifact
This commit is contained in:
parent
59c2223d6e
commit
b83312fb7b
|
|
@ -18,3 +18,18 @@ docker build -t protoc-artifacts /tmp/protobuf/protobuf-92898e9e9cb2f1c006fcc509
|
||||||
docker build -t grpc-java-releasing "$GRPC_JAVA_DIR"/buildscripts/grpc-java-releasing
|
docker build -t grpc-java-releasing "$GRPC_JAVA_DIR"/buildscripts/grpc-java-releasing
|
||||||
|
|
||||||
"$GRPC_JAVA_DIR"/buildscripts/run_in_docker.sh /grpc-java/buildscripts/build_artifacts_in_docker.sh
|
"$GRPC_JAVA_DIR"/buildscripts/run_in_docker.sh /grpc-java/buildscripts/build_artifacts_in_docker.sh
|
||||||
|
|
||||||
|
# grpc-android requires the Android SDK, so build outside of Docker and
|
||||||
|
# use --include-build for its grpc-core dependency
|
||||||
|
LOCAL_MVN_TEMP=$(mktemp -d)
|
||||||
|
pushd "$GRPC_JAVA_DIR/android"
|
||||||
|
../gradlew uploadArchives \
|
||||||
|
--include-build "$GRPC_JAVA_DIR" \
|
||||||
|
-Dorg.gradle.parallel=false \
|
||||||
|
-PskipCodegen=true \
|
||||||
|
-PrepositoryDir="$LOCAL_MVN_TEMP"
|
||||||
|
popd
|
||||||
|
|
||||||
|
readonly MVN_ARTIFACT_DIR="${MVN_ARTIFACT_DIR:-$GRPC_JAVA_DIR/mvn-artifacts}"
|
||||||
|
mkdir -p "$MVN_ARTIFACT_DIR"
|
||||||
|
cp -r "$LOCAL_MVN_TEMP"/* "$MVN_ARTIFACT_DIR"/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue