It’s a bit hacky and definitely not supported, but if you need an “executable” jar and don’t mind a bit of extra bloat, you can do something like:
cp ~/.daml/sdk/1.0.0/daml-sdk/daml-sdk.jar extractor.jar
jar uvfe extractor.jar com.daml.extractor.Main
That will give you a jar that you can use exactly like the one created by bazel build //extractor:extractor-binary
, though it does also include the code for a number of other DAML SDK tools. In exchange for that code bloat, it should be quite a bit easier to setup than the required dev setup to get bazel
running on the daml repo.