I think checking in the java files is fine and probably better then relying on a third party package. We should make sure there are instructions on how to regenerate them along with the PR
On Monday, March 22, 2021, Antoine Pitrou <anto...@python.org> wrote: > > Le 22/03/2021 à 20:17, bobtins a écrit : > >> TL;DR: The Java implementation doesn't have generated flatbuffers code >> under source control, and the code generation depends on an >> unofficially-maintained Maven artifact. Other language implementations do >> check in the generated code; would it make sense for this to be done for >> Java as well? >> >> I'm currently focusing on Java development; I started building on Windows >> and got a failure under java/format, because I couldn't download the >> flatbuffers compiler (flatc) to generate Java source. >> The artifact for the flatc binary is provided "unofficially" (not by the >> flatbuffers project), and there was no Windows version, so I had to jump >> through hoops to build it and proceed. >> > > While this does not answer the more general question of checking in the > generated Flatbuffers code (which sounds like a good idea, but I'm not a > Java developer), note that you could workaround this by installing the > Conda-provided flatbuffers package: > > $ conda install flatbuffers > > which should get you the `flatc` compiler, even on Windows. > (see https://docs.conda.io/projects/conda/en/latest/ for installing conda) > > You may also try other package managers such as Chocolatey: > > https://chocolatey.org/packages/flatc > > Regards > > Antoine. >