Skip to content

Commit e866d35

Browse files
authored
buildscripts: add config for building grpc-cronet artifact (#6134)
1 parent 2671a3d commit e866d35

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

buildscripts/kokoro/linux_artifacts.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readonly GRPC_JAVA_DIR="$(cd "$(dirname "$0")"/../.. && pwd)"
1010
"$GRPC_JAVA_DIR"/buildscripts/build_docker.sh
1111
"$GRPC_JAVA_DIR"/buildscripts/run_in_docker.sh /grpc-java/buildscripts/build_artifacts_in_docker.sh
1212

13-
# grpc-android requires the Android SDK, so build outside of Docker and
13+
# grpc-android and grpc-cronet require the Android SDK, so build outside of Docker and
1414
# use --include-build for its grpc-core dependency
1515
echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;28.0.3"
1616
LOCAL_MVN_TEMP=$(mktemp -d)
@@ -22,6 +22,14 @@ pushd "$GRPC_JAVA_DIR/android"
2222
-PrepositoryDir="$LOCAL_MVN_TEMP"
2323
popd
2424

25+
pushd "$GRPC_JAVA_DIR/cronet"
26+
../gradlew publish \
27+
--include-build "$GRPC_JAVA_DIR" \
28+
-Dorg.gradle.parallel=false \
29+
-PskipCodegen=true \
30+
-PrepositoryDir="$LOCAL_MVN_TEMP"
31+
popd
32+
2533
readonly MVN_ARTIFACT_DIR="${MVN_ARTIFACT_DIR:-$GRPC_JAVA_DIR/mvn-artifacts}"
2634
mkdir -p "$MVN_ARTIFACT_DIR"
2735
cp -r "$LOCAL_MVN_TEMP"/* "$MVN_ARTIFACT_DIR"/

buildscripts/kokoro/upload_artifacts.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ LOCAL_MVN_ARTIFACTS="$KOKORO_GFILE_DIR"/github/grpc-java/mvn-artifacts/
2020
# android artifact from linux job:
2121
[[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'grpc-android-*.aar' | wc -l)" != '0' ]]
2222

23+
# cronet artifact from linux job:
24+
[[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'grpc-cronet-*.aar' | wc -l)" != '0' ]]
25+
2326
# from linux job:
2427
[[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-linux-x86_64.exe' | wc -l)" != '0' ]]
2528
[[ "$(find "$LOCAL_MVN_ARTIFACTS" -type f -iname 'protoc-gen-grpc-java-*-linux-x86_32.exe' | wc -l)" != '0' ]]

0 commit comments

Comments
 (0)