NickBurkard commented on pull request #14544:
URL: https://github.com/apache/flink/pull/14544#issuecomment-929357246


   > 
   > 
   > @MartijnVisser @NickBurkard Do you already have some form of migration 
guide for 2.11 users?
   
   The main thing I would recommend is for users building Scala applications 
with sbt to properly add dependencies based on their Scala version, that way 
they don't end up with projects using the wrong dependencies. Scala 2.x 
versions are binary incompatible with one another.
   
   ```scala
   val flinkVersion = "1.13.2"
   
   lazy val myProject = project
     .in(file("example-app"))
     .settings(
       scalaVersion := "2.12.15",
       libraryDependencies ++= Seq(
         // be sure to use `%%`, it uses the dependency based on Scala version.
         "org.apache.flink" %% "flink-streaming-scala" % flinkVersion % 
Provided,
         // other dependencies go here
       )
     )
   ```
   
   If this isn't done, or if a 2.12 application is deployed to a Flink cluster 
running Scala 2.11, a runtime error will occur about a missing `Product` class:
   
https://stackoverflow.com/questions/42498035/java-lang-noclassdeffounderror-scala-productclass
   
   I can add some of these notes to a separate doc in the repo if that sounds 
good.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to