Hi Austin,

Yep, removing Flink dependencies is working well as you pointed out.

The problem now is that I would also need to remove the scala library...by
inspecting the jar you will see a lot of scala-related classes. If you take
a look at the end of the build.sbt file, I have

```
// exclude Scala library from assembly
assembly / assemblyOption  := (assembly /
assemblyOption).value.copy(includeScala = false)
```

so the fat jar generated by running `sbt assembly` does not contain
scala-related classes, which are also "provided". You can compare the
bazel-built jar with the one built by sbt 

```
$ jar tf target/scala-2.12/bazel-flink-scala-assembly-0.1-SNAPSHOT.jar
META-INF/MANIFEST.MF
org/
org/example/
BUILD
log4j.properties
org/example/WordCount$$anon$1$$anon$2.class
org/example/WordCount$$anon$1.class
org/example/WordCount$.class
org/example/WordCount.class
```

Note that there are neither Flink nor Scala classes. In the jar generated by
bazel, however, I can still see Scala classes...



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/

Reply via email to