File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ find "$BASEDIR" -name 'pom.xml' -not -path '*target*' -print \
6464# First find the right full version from the profile's build
6565# NOTE: We used to fetch the value of scala.version before but sed is used now. This is a workaround for SPARK-34762.
6666ESCAPED_TO_VERSION=$( echo $TO_VERSION | sed -n " s/\./\\\\ ./gp" )
67- SCALA_VERSION=$( sed -n " s;^.*<scala-$ESCAPED_TO_VERSION \.version>\(.*\)</scala-$ESCAPED_TO_VERSION \.version>.*$;\1;p" pom.xml)
67+ SCALA_VERSION=$( sed -n " /<id>scala-$ESCAPED_TO_VERSION <\/id>/,/<\/profile>/ \
68+ s;^.*<scala\.version>\(.*\)</scala\.version>.*$;\1;p" pom.xml)
6869sed_i ' 1,/<scala\.version>[0-9]*\.[0-9]*\.[0-9]*</s/<scala\.version>[0-9]*\.[0-9]*\.[0-9]*</<scala.version>' $SCALA_VERSION ' </' \
6970 " $BASEDIR /pom.xml"
7071
You can’t perform that action at this time.
0 commit comments