Open 0xAda opened 1 year ago
We currently have Java working internally, but haven't yet got an example open source instance working. It might be only a few lines away, it might already work (but probably not given your notes) or it might be a huge amount of work. CC @IanChilds who might have a better idea how far away it is.
@0xAda, @ndmitchell Any updates on this (Java builds)?
@ndmitchell Any updates on java/jvm builds? Or any examples for Java?
Still not I'm afraid. CC @IanChilds who might have a better idea. It's still being worked on.
Same question here as OP, @0xAda, as well as PHP, and many other languages. I'm having trouble finding clarification on the polyglot angle.
Internally we support a lot of languages - you can see their code in the prelude directory - https://github.com/facebook/buck2/tree/main/prelude. We have made a number of them work externally - you can see the test cases in https://github.com/facebook/buck2/tree/main/examples/with_prelude (C++, Haskell, Python, Rust, OCaml). We are actively working on making a number of internally-only ones work open-source, such as Java, Android, Apple.
We have no rules for languages such as PHP. We wouldn't be averse to adding them one day, as a user contribution.
I've been experimenting with buck2 but I've been struggling to find any information on building Java. A simple java_library rule fails to build
I'm not 100% sure what this error is caused by, I assume I need to configure a java toolchain, but I can't find anything to reference on how to do this. Is there documentation on this or projects to reference?