From dd3a6486ccfe0bd1d5d8d589fe05a3d985a79a02 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Wed, 13 Oct 2021 17:34:49 +0000 Subject: [PATCH] Update versions in README files (#9093) * update version numbers in java/README.md * update lite too --- update_version.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/update_version.py b/update_version.py index b96f715f91..2c2b4890eb 100755 --- a/update_version.py +++ b/update_version.py @@ -241,6 +241,24 @@ def UpdateJava(): RewriteXml('protoc-artifacts/pom.xml', lambda document : ReplaceText( Find(document.documentElement, 'version'), GetFullVersion())) + + RewriteTextFile('java/README.md', + lambda line : re.sub( + r'.*', + '%s' % GetFullVersion(), + line)) + + RewriteTextFile('java/README.md', + lambda line : re.sub( + r'implementation \'com.google.protobuf:protobuf-java:.*\'', + 'implementation \'com.google.protobuf:protobuf-java:%s\'' % GetFullVersion(), + line)) + + RewriteTextFile('java/lite.md', + lambda line : re.sub( + r'.*', + '%s' % GetFullVersion(), + line)) def UpdateJavaScript():