Skip to content

Commit 703e1eb

Browse files
committed
Update scala.binary.version prop in POM when switching between Scala 2.10/2.11
1 parent e359794 commit 703e1eb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dev/change-version-to-2.10.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717
# limitations under the License.
1818
#
1919
find . -name 'pom.xml' | grep -v target \
20-
| xargs -I {} sed -i -e 's|\(artifactId.*\)_2.11|\1_2.10|g' {}
20+
| xargs -I {} sed -i -e 's|\(artifactId.*\)_2.11|\1_2.10|g' {}
21+
22+
# Also update <scala.binary.version> in parent POM
23+
sed -i -e 's|<scala\.binary\.version>2.11<|<scala.binary.version>2.10<|1' pom.xml

dev/change-version-to-2.11.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
#
1919

2020
find . -name 'pom.xml' | grep -v target \
21-
| xargs -I {} sed -i -e 's|\(artifactId.*\)_2.10|\1_2.11|g' {}
21+
| xargs -I {} sed -i -e 's|\(artifactId.*\)_2.10|\1_2.11|g' {}
22+
23+
# Also update <scala.binary.version> in parent POM
24+
sed -i -e 's|<scala\.binary\.version>2.10<|<scala.binary.version>2.11<|1' pom.xml

0 commit comments

Comments
 (0)