Skip to content

Commit e75322b

Browse files
authored
Enable releasetool (#202)
* Enable releasetool versioning * Release notes * Fix type * remove extra declared versions
1 parent 9e9ddb1 commit e75322b

7 files changed

Lines changed: 33 additions & 13 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,34 @@ credentials as well as utility methods to create them and to get Application Def
2727
If you are using Maven, add this to your pom.xml file (notice that you can replace
2828
`google-auth-library-oauth2-http` with any of `google-auth-library-credentials` and
2929
`google-auth-library-appengine`, depending on your application needs):
30+
31+
[//]: # ({x-version-update-start:google-auth-library-oauth2-http:released})
32+
3033
```xml
3134
<dependency>
3235
<groupId>com.google.auth</groupId>
3336
<artifactId>google-auth-library-oauth2-http</artifactId>
3437
<version>0.11.0</version>
3538
</dependency>
3639
```
40+
[//]: # ({x-version-update-end})
41+
42+
3743
If you are using Gradle, add this to your dependencies
44+
45+
[//]: # ({x-version-update-start:google-auth-library-oauth2-http:released})
3846
```Groovy
3947
compile 'com.google.auth:google-auth-library-oauth2-http:0.11.0'
4048
```
49+
[//]: # ({x-version-update-end})
50+
4151
If you are using SBT, add this to your dependencies
52+
53+
[//]: # ({x-version-update-start:google-auth-library-oauth2-http:released})
4254
```Scala
4355
libraryDependencies += "com.google.auth" % "google-auth-library-oauth2-http" % "0.11.0"
4456
```
57+
[//]: # ({x-version-update-end})
4558

4659
## google-auth-library-credentials
4760

RELEASE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,15 @@ a major release. (0.6.0 -> 0.7.0)
6969

7070
Prepare release
7171
---------------
72-
* Update all ```pom.xml``` files in the package to the release version you want.
73-
* Update version numbers appearing in `README.md`.
74-
* Submit a pull request, get it reviewed, but wait to submit it in case there are errors during publishing.
75-
* ```mvn clean install deploy -DperformRelease=true```
72+
* Run `releasetool start`. Select "minor" or "patch" for the release type. This will bump the
73+
artifact versions, ask you to edit release notes, and create the release pull request.
74+
* Run `mvn clean install deploy -DperformRelease=true` to stage the release.
7675
* Verify the result [here](https://oss.sonatype.org/#nexus-search;quick~com.google.auth).
77-
* If there is a problem, undo by ```mvn nexus-staging:drop```.
76+
* If there is a problem, undo by `mvn nexus-staging:drop`.
7877

7978
Publish release
8079
---------------
81-
* ```mvn nexus-staging:release -DperformRelease=true```
80+
* `mvn nexus-staging:release -DperformRelease=true`
8281
* It will take some time (10 minutes to 8 hours) for the package to be released
8382
* Confirm that the release appears in the [parent folder on Maven
8483
Central](https://repo1.maven.org/maven2/com/google/auth/google-auth-library-parent/)
@@ -90,9 +89,10 @@ Central](https://repo1.maven.org/maven2/com/google/auth/google-auth-library-pare
9089
* Click on the repository and check for errors
9190
* Submit the pull request to bump the version numbers
9291
* Update Javadoc on Github using `scripts/update_javadoc.sh`.
93-
* On the [releases](https://github.com/google/google-auth-library-java/releases) page, create a corresponding Git tag (e.g., "v0.7.0") on the release commit, and summarize the commits since the last release. Follow the style of previous release notes.
94-
* Update all ```pom.xml``` files to the new snapshot version (increment patch version number, e.g., from 0.4.0 to 0.4.1-SNAPSHOT).
95-
* Submit a pull request, get it reviewed, and submit.
92+
* Run `releasetool tag` to create the GitHub release.
93+
* Run `releasetool start` to bump the next snapshot version. Select "snapshot" when prompted for
94+
the release type. This will bump the artifact versions and create a pull request.
95+
* Review and submit the PR.
9696

9797
Special cases
9898
=============

appengine/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.google.auth</groupId>
77
<artifactId>google-auth-library-parent</artifactId>
8-
<version>0.11.1-SNAPSHOT</version>
8+
<version>0.11.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

credentials/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.google.auth</groupId>
77
<artifactId>google-auth-library-parent</artifactId>
8-
<version>0.11.1-SNAPSHOT</version>
8+
<version>0.11.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

oauth2_http/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.google.auth</groupId>
77
<artifactId>google-auth-library-parent</artifactId>
8-
<version>0.11.1-SNAPSHOT</version>
8+
<version>0.11.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<groupId>com.google.auth</groupId>
1212
<artifactId>google-auth-library-parent</artifactId>
13-
<version>0.11.1-SNAPSHOT</version>
13+
<version>0.11.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
1414
<packaging>pom</packaging>
1515
<name>Google Auth Library for Java</name>
1616
<description>Client libraries providing authentication and

versions.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format:
2+
# module:released-version:current-version
3+
4+
google-auth-library-parent:0.11.0:0.11.1-SNAPSHOT
5+
google-auth-library-appengine:0.11.0:0.11.1-SNAPSHOT
6+
google-auth-library-credentials:0.11.0:0.11.1-SNAPSHOT
7+
google-auth-library-oauth2-http:0.11.0:0.11.1-SNAPSHOT

0 commit comments

Comments
 (0)