Hi!
How to build the project for Scala 2.11? -- Regards, Andrew |
Hi Andrew,
The method to build Flink with Scala 2.11 is described in Flink documentation [1]. I think this is not relevant but just FYI, to build your application based on Flink 1.0 (or later) with Scala 2.11, you should be careful to set Flink dependencies. There is a guide in Wiki [2]. [1]: https://ci.apache.org/projects/flink/flink-docs-master/setup/building.html#scala-versions [2]: https://cwiki.apache.org/confluence/display/FLINK/Maven+artifact+names+suffixed+with+Scala+version Regards, Chiwan Park > On Apr 5, 2016, at 9:40 AM, Andrew Gaydenko <[hidden email]> wrote: > > Hi! > > How to build the project for Scala 2.11? > -- > > Regards, > Andrew |
In reply to this post by Andrew Gaydenko
In your pom file you can mention against which version of scala you want to build and also remember to add the scala version in the artifactId in all the dependencies which takes scala version, there might be some libraries which are scala agnostic there you do not have to specify the scala version. <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <slf4j.version>1.7.12</slf4j.version> <flink.version>1.0.0</flink.version> <scala.version>2.11</scala.version> </properties> <dependencies> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-streaming-java_${scala.version}</artifactId> <version>${flink.version}</version> </dependency> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-streaming-scala_${scala.version}</artifactId> <version>${flink.version}</version> </dependency> </dependencies> On Tue, Apr 5, 2016 at 6:10 AM, Andrew Gaydenko <[hidden email]> wrote: Hi! |
In reply to this post by Chiwan Park-2
Chiwan, thanks, got it! - and the build finished with success.
I still a little confused with the method used: a tool from tools/ changes files being under the Git control. Regards, Andrew Chiwan Park <[hidden email]> writes: > Hi Andrew, > > The method to build Flink with Scala 2.11 is described in Flink documentation [1]. > > I think this is not relevant but just FYI, to build your application based on Flink 1.0 (or later) with Scala 2.11, you should be careful to set Flink dependencies. There is a guide in Wiki [2]. > > [1]: https://ci.apache.org/projects/flink/flink-docs-master/setup/building.html#scala-versions > [2]: https://cwiki.apache.org/confluence/display/FLINK/Maven+artifact+names+suffixed+with+Scala+version > > Regards, > Chiwan Park > >> On Apr 5, 2016, at 9:40 AM, Andrew Gaydenko <[hidden email]> wrote: >> >> Hi! >> >> How to build the project for Scala 2.11? >> -- >> >> Regards, >> Andrew |
In reply to this post by Balaji Rajagopalan
Balaji, now I see it is my mistake: I wasn't clear enough in my
question, sorry. Saying "the project" I mean Flink project itself. The question is already answered. Regards, Andrew Balaji Rajagopalan <[hidden email]> writes: > In your pom file you can mention against which version of scala you want to > build and also remember to add the scala version in the artifactId in all > the dependencies which takes scala version, there might be some libraries > which are scala agnostic there you do not have to specify the scala > version. > > <properties> > > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > > <slf4j.version>1.7.12</slf4j.version> > > <flink.version>1.0.0</flink.version> > > <scala.version>2.11</scala.version> > > </properties> > > > <dependencies> > > > <dependency> > > <groupId>org.apache.flink</groupId> > > > <artifactId>flink-streaming-java_${scala.version}</artifactId> > > <version>${flink.version}</version> > > </dependency> > > > <dependency> > > <groupId>org.apache.flink</groupId> > > <artifactId>flink-streaming-scala_${scala.version} > </artifactId> > > <version>${flink.version}</version> > > </dependency> > > </dependencies> > > On Tue, Apr 5, 2016 at 6:10 AM, Andrew Gaydenko <[hidden email]> > wrote: > >> Hi! >> >> How to build the project for Scala 2.11? >> -- >> >> Regards, >> Andrew >> |
Free forum by Nabble | Edit this page |