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():