aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildscripts/kokoro/linux_artifacts.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/buildscripts/kokoro/linux_artifacts.sh b/buildscripts/kokoro/linux_artifacts.sh
index a97e8fae8..7fb3ac59d 100755
--- a/buildscripts/kokoro/linux_artifacts.sh
+++ b/buildscripts/kokoro/linux_artifacts.sh
@@ -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
"$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"/