Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2940 Deploy multiple Scala versions for Maven artifacts
  3. FLINK-2933

Flink scala libraries exposed with maven should carry scala version

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • Build System
    • None

    Description

      [If I put this on the wrong component, can someone please update?]

      Major versions of scala are not forward nor backwards compatible. Libraries build for 2.10 will not work with 2.11 or vice versa.

      In order to avoid build related problems, it is strongly recommended to append the scala version it is compatible within the artifact id. This ensures the correct version of the library is pulled in rather than deferring the problem to a future build or runtime error.

      For example, akka exposes the following packages for the same version:

      <dependency>
      	<groupId>com.typesafe.akka</groupId>
      	<artifactId>akka-actor_2.10</artifactId>
      	<version>2.3.14</version>
      </dependency>
      
      <dependency>
      	<groupId>com.typesafe.akka</groupId>
      	<artifactId>akka-actor_2.11</artifactId>
      	<version>2.3.14</version>
      </dependency>
      

      Attachments

        Activity

          People

            mxm Maximilian Michels
            fkautz Frederick F. Kautz IV
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: