mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-5334 change version of thrift-maven-plugin to 0.14.0
Client: Java Patch: James Z.M. Gao This closes #2304
This commit is contained in:
parent
6140fb27e0
commit
93ae7af5ba
@ -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
|
||||
@ -155,7 +156,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
|
||||
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
|
||||
|
@ -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.15.0</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
|
Loading…
Reference in New Issue
Block a user