Permalink
Browse files

[FLINK-4861][hotfix] Fix change-scala-version script for opt assembly

  • Loading branch information...
1 parent 98a6dcd commit 1358753dd9b830034593902531ed30e5557644f0 @rmetzger rmetzger committed Jan 3, 2017
Showing with 7 additions and 1 deletion.
  1. +7 −1 tools/change-scala-version.sh
@@ -77,12 +77,18 @@ find "$BASEDIR/flink-examples/flink-examples-streaming" -name 'pom.xml' -not -pa
find "$BASEDIR/flink-quickstart" -name 'pom.xml' -not -path '*target*' -print \
-exec bash -c "sed_i 's/\(<exclude>org\.apache\.flink:flink-.*\)'$FROM_SUFFIX'<\/exclude>/\1'$TO_SUFFIX'<\/exclude>/g' {}" \;
-# fix for flink-dist
+# fix for flink-dist (bin.xml)
find "$BASEDIR/flink-dist" -name 'bin.xml' -not -path '*target*' -print \
-exec bash -c "sed_i 's/\(<source>.*flink-dist\)'$FROM_SUFFIX'/\1'$TO_SUFFIX'/g' {}" \;
find "$BASEDIR/flink-dist" -name 'bin.xml' -not -path '*target*' -print \
-exec bash -c "sed_i 's/\(<include>org\.apache\.flink:flink-.*\)'$FROM_SUFFIX'<\/include>/\1'$TO_SUFFIX'<\/include>/g' {}" \;
+# fix for flink-dist (opt.xml)
+find "$BASEDIR/flink-dist" -name 'opt.xml' -not -path '*target*' -print \
+ -exec bash -c "sed_i 's/\(<source>.*flink-.*\)'$FROM_SUFFIX'/\1'$TO_SUFFIX'/g' {}" \;
+find "$BASEDIR/flink-dist" -name 'opt.xml' -not -path '*target*' -print \
+ -exec bash -c "sed_i 's/\(<destName>flink-.*\)'$FROM_SUFFIX'/\1'$TO_SUFFIX'/g' {}" \;
+
# fix for shading curator with Scala 2.11
find "$BASEDIR/flink-runtime" -name 'pom.xml' -not -path '*target*' -print \
-exec bash -c "sed_i 's/\(<include>org\.apache\.flink:flink-shaded-curator.*\)'$FROM_SUFFIX'<\/include>/\1'$TO_SUFFIX'<\/include>/g' {}" \;

0 comments on commit 1358753

Please sign in to comment.