Flink should also work without the YARN code. The name of flink-shaded-include-yarn is a bit misleading. The name should actually be "hadoop-with-yarn". So jersey is not necessarily a dependency of YARN, it could also come from other components of YARN.
So on our side, we can most likely exclude the jersey dependency from the shaded jar. For now, is it possible for you to use the same jersey version we (=hadoop) is using?