Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set +x | ||
|
||
grep "<scala\.version>" pom.xml | grep -q 2.12 | ||
if [[ $? == 0 ]]; | ||
then | ||
echo "Scala version is already set to 2.12 (Scala artifacts have _2.12 version suffix in artifact name)." | ||
echo "Cowardly refusing to move to Scala 2.12 a second time..." | ||
|
||
exit 1 | ||
fi | ||
|
||
find . -name "pom.xml" -exec sed -e "s/2.11.12/2.12.6/g" \ | ||
-e "s/2.11/2.12/g" \ | ||
-i.2.12.bak '{}' \; | ||
# keep parquet-scala at parquet-scala_2.10 | ||
find . -name "pom.xml" -exec sed -e "s/parquet-scala_2.12/parquet-scala_2.10/g" -i.2.12.2.bak '{}' \; | ||
find . -name "*.2.12.*bak" -exec rm -f {} \; |