You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/05/11 09:47:36 UTC

[GitHub] [flink] rmetzger commented on a change in pull request #12016: [FLINK-17497][e2e] Properly switch to Scala 2.12 in quickstart test

rmetzger commented on a change in pull request #12016:
URL: https://github.com/apache/flink/pull/12016#discussion_r422918803



##########
File path: flink-end-to-end-tests/test-scripts/test_quickstarts.sh
##########
@@ -68,6 +68,13 @@ sed -i -e ''$(($position + 1))'i\
 
 sed -i -e "s/org.apache.flink.quickstart.StreamingJob/org.apache.flink.quickstart.$TEST_CLASS_NAME/" pom.xml
 
+if [[ $PROFILE == *"scala-2.12"* ]]; then
+  echo "Changing scala version"
+  sed -i -e "s/scala.binary.version>2.11<\/scala.binary/scala.binary.version>2.12<\/scala.binary/" pom.xml
+  # for flink-quickstart-scala, also change scala version
+  sed -i -e "s/scala.version>2.11.12<\/scala.ver/scala.version>2.12.7<\/scala.ver/" pom.xml
+fi
+

Review comment:
       That would be way too clean for our e2e tests :) 
   In case of an unsupported scala version, the e2e test would fail through maven in the scala compile stage.
   
   Addressed in https://github.com/rmetzger/flink/commit/eda372b26dc5ea82b03f0ada8d16bc85afc61123




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org