Skip to content

Commit 41a9c94

Browse files
committed
Disable parallel with argument for greater ease
1 parent 80baa63 commit 41a9c94

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

RELEASING.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,10 @@ the grpc-java source directory._**
261261

262262
As stated above, this only needs to be done once for one of the selected OS/architectures.
263263
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).
265266
```bash
266-
grpc-java$ ./gradlew clean build && ./gradlew uploadArchives
267+
grpc-java$ ./gradlew clean build && ./gradlew -Dorg.gradle.parallel=false uploadArchives
267268
```
268269

269270
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
281282
If 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

287289
When 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
294296
grpc-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

298300
Releasing on Maven Central

0 commit comments

Comments
 (0)