If Google updates its PhoneLib, this project should be updated to use that new version. This file is a step by step instruction how to do this:
-
Create a new local branch - best name it
phonelib/X_YY_ZZ
so it is easily seen that this branch is just an update for the version X.YY.ZZ, without any new features. -
Update pom.xml to use the new phonelib version:
<dependency> <groupId>com.googlecode.libphonenumber</groupId> <artifactId>libphonenumber</artifactId> <version>X.YY.ZZ</version> </dependency>
-
Check on Maven Central
https://central.sonatype.com/artifact/com.googlecode.libphonenumber/libphonenumber/X.YY.ZZ/dependents
the version number forgeocoder
(referred as A.BBB). -
Update pom.xml to use the new geocoder version in testing:
<dependency> <groupId>com.googlecode.libphonenumber</groupId> <artifactId>geocoder</artifactId> <version>A.BBB</version> <scope>test</scope> </dependency>
-
Run all unit test and check log messages if Phonelib still is not correctly: a) normalizing specific number -> this project is still necessary b) labeling specific numbers -> own area labels for DE still necessary if there are corrections or additional mismatches listed - name those in the commit message and update tests.
-
Remove
-SNAPSHOT
from version tag in pom.xml -
Commit & Push the Snapshot with a message like:
Use PhoneLib X.YY.ZZ and prepare release
-
Go to Github and create a pull request for the branch.
-
Wait until pull request passed all checks - merge or ask a maintainer to merge the pull request into main.
-
After merge has finished, draft a new Release. Use as tag the
v
+ the version number of the pom, where you removed-SNAPSHOT
. As Release title usePhoneLib X.YY.ZZ
and add a message like:Use the latest PhoneLib version from four days ago.
Keep the flag "Set as the latest release" and press Publish release.
-
Wait until the publishing action is finished (the project is automatically released to Maven Central)
-
Add
-SNAPSHOT
to version tag and increase its last number in pom.xml -
Commit & Push the Snapshot with a message like:
Start Snapshot NEW_VERSION after release OLD_VERSION
-
Go to Github and create a pull request for the branch.
-
Wait until pull request passed all checks - merge or ask a maintainer to merge the pull request into main.
-
Delete the branch
phonelib/X_YY_ZZ
.
Congratulation! You have updated the project to the current PhoneLib version.