File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff 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
1515echo y | ${ANDROID_HOME} /tools/bin/sdkmanager " build-tools;28.0.3"
1616LOCAL_MVN_TEMP=$( mktemp -d)
@@ -22,6 +22,14 @@ pushd "$GRPC_JAVA_DIR/android"
2222 -PrepositoryDir=" $LOCAL_MVN_TEMP "
2323popd
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+
2533readonly MVN_ARTIFACT_DIR=" ${MVN_ARTIFACT_DIR:- $GRPC_JAVA_DIR / mvn-artifacts} "
2634mkdir -p " $MVN_ARTIFACT_DIR "
2735cp -r " $LOCAL_MVN_TEMP " /* " $MVN_ARTIFACT_DIR " /
Original file line number Diff line number Diff 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' ]]
You can’t perform that action at this time.
0 commit comments