@@ -261,9 +261,10 @@ the grpc-java source directory._**
261261
262262As stated above, this only needs to be done once for one of the selected OS/architectures.
263263The following command will build the whole project and upload it to Maven
264- Central. Make sure you have ` org.gradle.parallel ` disabled for upload.
264+ Central. Parallel building [ is not safe during
265+ uploadArchives] ( https://issues.gradle.org/browse/GRADLE-3420 ) .
265266``` bash
266- grpc-java$ ./gradlew clean build && ./gradlew uploadArchives
267+ grpc-java$ ./gradlew clean build && ./gradlew -Dorg.gradle.parallel=false uploadArchives
267268```
268269
269270If the version has the ` -SNAPSHOT ` suffix, the artifacts will automatically
@@ -281,7 +282,8 @@ commands on that OS and specify the architecture by the flag `-PtargetArch=<arch
281282If you are doing a snapshot deployment:
282283
283284``` bash
284- grpc-java$ ./gradlew clean grpc-compiler:build grpc-compiler:uploadArchives -PtargetArch=< arch>
285+ grpc-java$ ./gradlew clean grpc-compiler:build grpc-compiler:uploadArchives \
286+ -PtargetArch=< arch> -Dorg.gradle.parallel=false
285287```
286288
287289When deploying a Release, the first deployment will create
@@ -292,7 +294,7 @@ ensure that the artifacts are pushed to the same staging repository.
292294
293295``` bash
294296grpc-java$ ./gradlew clean grpc-compiler:build grpc-compiler:uploadArchives -PtargetArch=< arch> \
295- -PrepositoryId=< repository-id>
297+ -PrepositoryId=< repository-id> -Dorg.gradle.parallel=false
296298```
297299
298300Releasing on Maven Central
0 commit comments