@@ -261,9 +261,10 @@ the grpc-java source directory._**
261
261
262
262
As stated above, this only needs to be done once for one of the selected OS/architectures.
263
263
The 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 ) .
265
266
``` bash
266
- grpc-java$ ./gradlew clean build && ./gradlew uploadArchives
267
+ grpc-java$ ./gradlew clean build && ./gradlew -Dorg.gradle.parallel=false uploadArchives
267
268
```
268
269
269
270
If 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
281
282
If you are doing a snapshot deployment:
282
283
283
284
``` 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
285
287
```
286
288
287
289
When deploying a Release, the first deployment will create
@@ -292,7 +294,7 @@ ensure that the artifacts are pushed to the same staging repository.
292
294
293
295
``` bash
294
296
grpc-java$ ./gradlew clean grpc-compiler:build grpc-compiler:uploadArchives -PtargetArch=< arch> \
295
- -PrepositoryId=< repository-id>
297
+ -PrepositoryId=< repository-id> -Dorg.gradle.parallel=false
296
298
```
297
299
298
300
Releasing on Maven Central
0 commit comments