Skip to content

Commit

Permalink
Updated Kotlin versions and updated script to handle them
Browse files Browse the repository at this point in the history
  • Loading branch information
acozzette committed May 10, 2021
1 parent 0228ef9 commit e826c0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/kotlin-lite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-parent</artifactId>
<version>3.17.0-rc-1</version>
<version>3.17.0-rc-2</version>
</parent>

<artifactId>protobuf-kotlin-lite</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java/kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-parent</artifactId>
<version>3.17.0-rc-1</version>
<version>3.17.0-rc-2</version>
</parent>

<artifactId>protobuf-kotlin</artifactId>
Expand Down
10 changes: 10 additions & 0 deletions update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,16 @@ def UpdateJava():
Find(Find(document.documentElement, 'parent'), 'version'),
GetFullVersion()))

RewriteXml('java/kotlin/pom.xml',
lambda document : ReplaceText(
Find(Find(document.documentElement, 'parent'), 'version'),
GetFullVersion()))

RewriteXml('java/kotlin-lite/pom.xml',
lambda document : ReplaceText(
Find(Find(document.documentElement, 'parent'), 'version'),
GetFullVersion()))

RewriteXml('protoc-artifacts/pom.xml',
lambda document : ReplaceText(
Find(document.documentElement, 'version'), GetFullVersion()))
Expand Down

0 comments on commit e826c0c

Please sign in to comment.