[ https://issues.apache.org/jira/browse/FLINK-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611956#comment-14611956 ]
ASF GitHub Bot commented on FLINK-2311: --------------------------------------- Github user aalexandrov commented on the pull request: https://github.com/apache/flink/pull/880#issuecomment-118035911 @mjsax exactly. Let's at the moment I land in the following situtaion. 1. I want to create a job which includes the [statistics collection facility proposed by @tammymendt](https://issues.apache.org/jira/browse/FLINK-1297). 1. In order to do that, my project needs to set `flink-contrib` with scope `compile` and use it in the final artifact (even if I am building a *thin* jar which is going to be submitted to a standalone flink cluster). 1. The jar that turns out to be ~ 64 MB. Out of that, half of the bits are taken by code is *guaranteed* to be in the classpath at rintime by virtue of being included in the `$FLINK_DIR/lib/flink-dist-$VERSION.jar`. 1. Setting all transitive `flink-*` dependencies via `flink-contrib` as `provided` reduces the size to ~ 32 MB by default. > Set flink-* dependencies in flink-contrib as "provided" > ------------------------------------------------------- > > Key: FLINK-2311 > URL: https://issues.apache.org/jira/browse/FLINK-2311 > Project: Flink > Issue Type: Improvement > Components: flink-contrib > Affects Versions: 0.10, 0.9.1 > Reporter: Alexander Alexandrov > Assignee: Alexander Alexandrov > Priority: Minor > Labels: easyfix, maven, patch > Fix For: 0.10, 0.9.1 > > > The {{flink-contrib}} folder is assumed to be provided by the user. As such, > other {{flink-*}} dependencies referenced within {{flink-contrib}} should be > set as _'provided'_ in order to keep the size of the user jars down. I'm > currently testing a patch that changes the poms as suggested and will open a > PR on GitHub if this everything passes. -- This message was sent by Atlassian JIRA (v6.3.4#6332)