File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ source ${scriptDir}/common.sh
2727mvn -version
2828echo ${JOB_TYPE}
2929
30+
31+
3032# Store the current Java version since the version may change when installing sdk-platform-java
3133current_java_home=$JAVA_HOME
3234
@@ -89,9 +91,11 @@ if [[ "${CURRENT_PROTO_VERSION}" != "${LATEST_PROTO_VERSION}" ]]; then
8991 for pom in " ${poms[@]} " ; do
9092 if grep -q " sdk-platform-java-config" " ${pom} " ; then
9193 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} "
94+ sed -i " /<artifactId>sdk-platform-java-config<\/artifactId>/,/<\/parent>/ s/<version>.*<\/version>/<version>$SHARED_DEPS_VERSION <\/version>/" " ${pom} "
95+ # xmlstarlet ed --inplace -N x="http://maven.apache.org/POM/4.0.0" \
96+ # -u "//x:project/x:parent[x:artifactId='sdk-platform-java-config']/x:version" \
97+ # -v "${SHARED_DEPS_VERSION}" \
98+ # "${pom}"
9599 fi
96100 done
97101fi
You can’t perform that action at this time.
0 commit comments