You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/08 10:50:42 UTC

[jira] [Commented] (FLINK-5005) Publish Scala 2.12 artifacts

    [ https://issues.apache.org/jira/browse/FLINK-5005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961781#comment-15961781 ] 

ASF GitHub Bot commented on FLINK-5005:
---------------------------------------

GitHub user DieBauer opened a pull request:

    https://github.com/apache/flink/pull/3703

    [FLINK-5005] WIP: publish scala 2.12 artifacts

    - [ ] General
      - The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
      - The pull request addresses only one issue
      - Each commit in the PR has a meaningful commit message (including the JIRA id)
    
    - [ ] Documentation
      - Documentation has been added for new functionality
      - Old documentation affected by the pull request has been updated
      - JavaDoc for public methods has been added
    
    - [ ] Tests & Build
      - Functionality added by the pull request is covered by tests
      - `mvn clean verify` has been executed successfully locally or a Travis build has passed
    
    
    This is an initial approach to make flink scala 2.12 ready.
    
    I've introduced profiles to switch between 2.12, 2.11 and 2.10. All three profiles now compile.
    
    `mvn clean install -D$version` where $version is `scala-2.12`, `scala-2.11` or `scala-2.10`.
    
    To overcome the `flakka` artifacts (akka2.3-custom) for scala 2.12, I've replaced them with the latest typesafe-akka artifacts when using the 2.12 profile.
    
    TravisCI profiles are added and I've changed the initial release script to accomodate for 2.12, but this is by no means finished. 
    
    I encountered a lot of compilation errors, because types could not be inferred. Therefore I've added types to problematic expressions.
    
    The kafka 0.10 dependency is bumped to 0.10.1.1 since that's the first released version for 2.12. 
    There is some trickery in the connector-parent-pom because only kafka-0.10 is released for 2.12, kafka-0.9 and kafka-0.8 aren't compiled for 2.12. I've to look into that a little more. 
    
    More updated dependencies: 
    javassist was bumped because of java.lang.IllegalStateException: Failed to transform class with name scala.concurrent.duration.Duration. Reason: javassist.bytecode.InterfaceMethodrefInfo cannot be cast to javassist.bytecode.MethodrefInfo. which led me to: http://stackoverflow.com/questions/31189086/powermock-and-java-8-issue-interfacemethodrefinfo-cannot-be-cast-to-methodrefin#37217871
    
    twitter-chill was bumped to 0.7.7 version for cross-compiled versions. 
    
    grizzled slf4j was bumped for scala 2.12 to version 1.3.0. 
    
    scalatest was bumped for scala 2.12 to version 3.0.1
    
    Right now I'm trying to make the travis build succeed.
    
    Any other suggestions are welcome!
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/DieBauer/flink feature/scala-2.12

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/3703.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3703
    
----
commit 5ac12faddda03456b5c70fabb0bae30a82104a2e
Author: Jens Kat <je...@gmail.com>
Date:   2017-01-03T21:32:58Z

    initial commit.

commit 1b345a1cb511660e39004ac44685573234a6dca0
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T12:59:17Z

    Merge branch 'master' of https://github.com/apache/flink into feature/scala-2.12
    
    # Conflicts:
    #	pom.xml

commit 7b8c8872f3597986df63c097053abebcf276f861
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T13:05:55Z

    Change shell scripts

commit 61d38b8ee3573df7d09734b6d086c1501363d339
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T16:22:36Z

    part1

commit 7f32cad571fb86618f11ba3cc9f5dd06dbd63f52
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T18:34:06Z

    flink-tests

commit e858db282d6546e7e4afc016b18a28aad231ab04
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T18:51:13Z

    fix compile error
    
    [ERROR] /Users/jens/Development/flink/flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/GroupCombineITCase.java:54: error: not found: type TestExecutionMode
    [INFO]  public GroupCombineITCase(TestExecutionMode mode) {
    
    maybe related to https://github.com/scala/bug/issues/10207 ?

commit 260a8356c180c23484f73b5ab13e5f7cbd5a997f
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T19:02:05Z

    since scala 2.12 use java.util.concurrent.forkjoinpool directly

commit 23f513dbf92121e451ff6929269ee76623b3a931
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T19:42:48Z

    fix ambiguous methods

commit b7d48ecc3c2dd14dd916ee95749d9aab286a88b8
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T20:14:49Z

    take into account that only kafka 0.10 is for scala 2.12

commit 4ac7203add03fcebb185eb1ae105c93e86ba7e28
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T20:31:29Z

    gelly

commit cdeb7dea46c6f2075befa9c964b642a38e6c4723
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T20:35:35Z

    extract version breeze

commit 5c7ea523d2cd2c0443717ea39fc4b4506916508a
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T20:58:48Z

    fix flink ml

commit f96c46a18160ba63f86bc6c6a768099c45a0b070
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-07T21:11:50Z

    add iloopcompat for scala-2.12

commit 0203d7d9723690640c1fcb797fe766c561ce02a3
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T07:35:32Z

    make it compile with 2.12

commit 8187b9ba900c4075233267f4ee65e7cf20bbb98b
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T07:36:22Z

    build all with travis

commit 26daa5fbba8d0c99f92d6cf0677d2c248d287428
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:07:58Z

    profiles

commit 20be009b5c935a5c352ae90f4f482c38167c4d38
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:22:04Z

    update pom profile

commit 565d82b1fced77f70f2aa409b9eb52e5030d0cf5
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:24:24Z

    updated pom profile

commit 1f626508d10966d55b0af5ae2a64ade5f8fcfad9
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:28:19Z

    update javassist
    
    java.lang.IllegalStateException: Failed to transform class with name scala.concurrent.duration.Duration. Reason: javassist.bytecode.InterfaceMethodrefInfo cannot be cast to javassist.bytecode.MethodrefInfo
    
    http://stackoverflow.com/questions/31189086/powermock-and-java-8-issue-interfacemethodrefinfo-cannot-be-cast-to-methodrefin#37217871

commit 7c52776ac1187203e5da740b1333cde1275369d3
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:53:51Z

    bump scalatest

commit bee792ae7c813109577af964f735a19ea2a0ffcc
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:54:10Z

    Add types to foreach

commit 5362eb077dd32c1b1cff53678f79d819765ebd2c
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T08:58:56Z

    make profiles better

commit 6d413df78ef445b0ae966bfef4ffa4fc480ab81b
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T09:07:08Z

    update chill to 2.12 version compat

commit 3bcf3d59ade5eb92fa78a6ec122c7e5c7316b778
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T09:50:01Z

    use jdk8 profile for travis and scala 2.12

commit 6f47d85e76fdf46988a8ad22ef346f3b19ccf6b0
Author: Jens Kat <je...@gmail.com>
Date:   2017-04-08T10:14:28Z

    clean up

----


> Publish Scala 2.12 artifacts
> ----------------------------
>
>                 Key: FLINK-5005
>                 URL: https://issues.apache.org/jira/browse/FLINK-5005
>             Project: Flink
>          Issue Type: Improvement
>          Components: Scala API
>            Reporter: Andrew Roberts
>
> Scala 2.12 was [released|http://www.scala-lang.org/news/2.12.0] today, and offers many compile-time and runtime speed improvements. It would be great to get artifacts up on maven central to allow Flink users to migrate to Scala 2.12.0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)