File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 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
8989 for pom in " ${poms[@]} " ; do
9090 if grep -q " sdk-platform-java-config" " ${pom} " ; then
9191 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}"
9597 fi
9698 done
9799fi
You can’t perform that action at this time.
0 commit comments