File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,11 @@ if [[ "${CURRENT_PROTO_VERSION}" != "${LATEST_PROTO_VERSION}" ]]; then
89
89
for pom in " ${poms[@]} " ; do
90
90
if grep -q " sdk-platform-java-config" " ${pom} " ; then
91
91
echo " Updating the pom: ${pom} to use shared-deps version: ${SHARED_DEPS_VERSION} "
92
- sed -i -E " /<groupId>com.google.cloud<\/groupId>.*<artifactId>sdk-platform-java-config<\/artifactId>/ {
93
- s/(<version>)[^<]+(<\/version>)/\1${SHARED_DEPS_VERSION} \2/
94
- }" " ${pom} "
92
+ sed -i " /<artifactId>sdk-platform-java-config<\/artifactId>/,/<\/parent>/ s/<version>.*<\/version>/<version>$SHARED_DEPS_VERSION <\/version>/" " ${pom} "
93
+ # xmlstarlet ed --inplace -N x="http://maven.apache.org/POM/4.0.0" \
94
+ # -u "//x:project/x:parent[x:artifactId='sdk-platform-java-config']/x:version" \
95
+ # -v "${SHARED_DEPS_VERSION}" \
96
+ # "${pom}"
95
97
fi
96
98
done
97
99
fi
You can’t perform that action at this time.
0 commit comments