You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2021/02/26 20:08:58 UTC
[thrift] branch 0.14.0 updated: THRIFT-5334 change version of
thrift-maven-plugin to 0.14.0 Client: Java Patch: James Z.M. Gao
This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch 0.14.0
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/0.14.0 by this push:
new 65fb49b THRIFT-5334 change version of thrift-maven-plugin to 0.14.0 Client: Java Patch: James Z.M. Gao
65fb49b is described below
commit 65fb49bb41f852375b278c9057d52c9472f0cb3a
Author: James Z.M. Gao <ga...@360.cn>
AuthorDate: Wed Jan 6 11:51:41 2021 +0800
THRIFT-5334 change version of thrift-maven-plugin to 0.14.0
Client: Java
Patch: James Z.M. Gao
---
build/veralign.sh | 15 ++++++++++++++-
contrib/thrift-maven-plugin/pom.xml | 2 +-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/build/veralign.sh b/build/veralign.sh
index 422da85..9a0d883 100755
--- a/build/veralign.sh
+++ b/build/veralign.sh
@@ -57,6 +57,7 @@ FILES[configure.ac]=configureReplace
FILES[contrib/Rebus/Properties/AssemblyInfo.cs]=simpleReplace
FILES[contrib/thrift.spec]=simpleReplace
FILES[contrib/zeromq/csharp/AssemblyInfo.cs]=simpleReplace
+FILES[contrib/thrift-maven-plugin/pom.xml]=pomReplace
FILES[doc/specs/idl.md]=simpleReplace
FILES[lib/as3/gradle.properties]=simpleReplace
FILES[lib/d/src/thrift/base.d]=simpleReplace
@@ -154,7 +155,7 @@ validateVersion "${NEWVERSION}" || exit $?
#
function escapeVersion
{
- echo "$(echo $1 | sed 's/\./\\./g' | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g')"
+ echo "$(echo "$1" | sed 's/\./\\./g' | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g')"
}
# Set up verbose hilighting if running interactive
@@ -238,6 +239,18 @@ function pubspecReplace
}
#
+# pomReplace: replace a specific version field in a maven pom file
+# must be a top level "version" field in the xml structure
+# \param $1 filename to do replacements on
+# \returns 0 on success
+#
+
+function pomReplace
+{
+ replace "$1" "^ <version>${OLDVERSION}<\/version>" " <version>${NEWVERSION}<\/version>"
+}
+
+#
# replace: replace occurrences of one string with another
# the file specified must contain the old string at least once
# in order to be successful.
diff --git a/contrib/thrift-maven-plugin/pom.xml b/contrib/thrift-maven-plugin/pom.xml
index b181622..064f0cc 100644
--- a/contrib/thrift-maven-plugin/pom.xml
+++ b/contrib/thrift-maven-plugin/pom.xml
@@ -32,7 +32,7 @@
<artifactId>thrift-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>thrift-maven-plugin</name>
- <version>1.0.0</version>
+ <version>0.14.0</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>