Seems like the hard-coded version keeps drifting everytime a new release is made (current release 7.1.0, but code still shows 7.0.0).
This uses resource jar approach to embed the version into the binary and read it at runtime. This ensures that the version is always up to sync with release.
> git tag -a 7.1.1 -m "Version bump"
> bazel-out/darwin_arm64-fastbuild/bin/cli/bazel-diff --version
7.1.1
# If built off master (no tags)
> bazel-out/darwin_arm64-fastbuild/bin/cli/bazel-diff --version ✔
acd415a165d8515d9d94be18f14dcd62d0c1bf1c