Skip to content

Commit

Permalink
THRIFT-5334 change version of thrift-maven-plugin to 0.14.0
Browse files Browse the repository at this point in the history
Client: Java
Patch: James Z.M. Gao
  • Loading branch information
gzm55 authored and Jens-G committed Feb 26, 2021
1 parent 4a8b0f9 commit 65fb49b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion build/veralign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -237,6 +238,18 @@ function pubspecReplace
replace "$1" "version: ${OLDVERSION}" "version: ${NEWVERSION}"
}

#
# 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
Expand Down
2 changes: 1 addition & 1 deletion contrib/thrift-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 65fb49b

Please sign in to comment.