mirror of https://github.com/grpc/grpc-java.git
docs: Android examples moved for sed in RELEASING.md
examples/android/app/build.gradle is now examples/android/helloworld/app/build.gradle and examples/android/routeguide/app/build.gradle. Since the number of files is getting a bit long, move it to a variable.
This commit is contained in:
parent
57b9dd467f
commit
1f7fb044ab
22
RELEASING.md
22
RELEASING.md
|
|
@ -66,6 +66,15 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ MAJOR=0 MINOR=7 PATCH=0 # Set appropriately for new release
|
$ MAJOR=0 MINOR=7 PATCH=0 # Set appropriately for new release
|
||||||
|
$ VERSION_FILES=(
|
||||||
|
build.gradle
|
||||||
|
android-interop-testing/app/build.gradle
|
||||||
|
examples/build.gradle
|
||||||
|
examples/pom.xml
|
||||||
|
examples/android/helloworld/app/build.gradle
|
||||||
|
examples/android/routeguide/app/build.gradle
|
||||||
|
examples/thrift/build.gradle
|
||||||
|
)
|
||||||
$ git checkout -b v$MAJOR.$MINOR.x master
|
$ git checkout -b v$MAJOR.$MINOR.x master
|
||||||
$ git push upstream v$MAJOR.$MINOR.x
|
$ git push upstream v$MAJOR.$MINOR.x
|
||||||
```
|
```
|
||||||
|
|
@ -76,9 +85,7 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
|
||||||
$ git checkout -b bump-version master
|
$ git checkout -b bump-version master
|
||||||
# Change version to next minor (and keep -SNAPSHOT)
|
# Change version to next minor (and keep -SNAPSHOT)
|
||||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
|
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$((MINOR+1)).0'\1/' \
|
||||||
build.gradle android-interop-testing/app/build.gradle \
|
"${VERSION_FILES[@]}"
|
||||||
examples/build.gradle examples/pom.xml \
|
|
||||||
examples/android/app/build.gradle examples/thrift/build.gradle
|
|
||||||
$ ./gradlew build
|
$ ./gradlew build
|
||||||
$ git commit -a -m "Start $MAJOR.$((MINOR+1)).0 development cycle"
|
$ git commit -a -m "Start $MAJOR.$((MINOR+1)).0 development cycle"
|
||||||
```
|
```
|
||||||
|
|
@ -104,10 +111,7 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Change version to remove -SNAPSHOT
|
# Change version to remove -SNAPSHOT
|
||||||
$ sed -i 's/-SNAPSHOT\(.*CURRENT_GRPC_VERSION\)/\1/' \
|
$ sed -i 's/-SNAPSHOT\(.*CURRENT_GRPC_VERSION\)/\1/' "${VERSION_FILES[@]}"
|
||||||
build.gradle android-interop-testing/app/build.gradle \
|
|
||||||
examples/build.gradle examples/pom.xml \
|
|
||||||
examples/android/app/build.gradle examples/thrift/build.gradle
|
|
||||||
$ ./gradlew build
|
$ ./gradlew build
|
||||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH"
|
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$PATCH"
|
||||||
$ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH"
|
$ git tag -a v$MAJOR.$MINOR.$PATCH -m "Version $MAJOR.$MINOR.$PATCH"
|
||||||
|
|
@ -118,9 +122,7 @@ would be used to create all `v0.7` tags (e.g. `v0.7.0`, `v0.7.1`).
|
||||||
```bash
|
```bash
|
||||||
# Change version to next patch and add -SNAPSHOT
|
# Change version to next patch and add -SNAPSHOT
|
||||||
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
|
$ sed -i 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*CURRENT_GRPC_VERSION\)/'$MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT'\1/' \
|
||||||
build.gradle android-interop-testing/app/build.gradle \
|
"${VERSION_FILES[@]}"
|
||||||
examples/build.gradle examples/pom.xml \
|
|
||||||
examples/android/app/build.gradle examples/thrift/build.gradle
|
|
||||||
$ ./gradlew build
|
$ ./gradlew build
|
||||||
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
|
$ git commit -a -m "Bump version to $MAJOR.$MINOR.$((PATCH+1))-SNAPSHOT"
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue