Can buck be used as a build system for software projects that have nothing to do with Android? It seems like it can be used as such, but it's not clear if that's intended or supported.
Red
[cache]
mode = dir
Buck can be used for non-Java projects, though support for other languages varies.
As you can see from the "build rules" section of the docs:
http://facebook.github.io/buck/
There's first class support for Java and Python.
There is support for C, but it's currently undocumented. I'm not sure if that's because it's still in flux or because we just haven't had a chance to write it up yet.
There is no built-in support for Go right now. You could try building your own build steps out of genrules. My understanding is that Go builds very quickly, so even if a genrule isn't the most efficient, I guess it should still be pretty performant.
--
You received this message because you are subscribed to the Google Groups "Buck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to buck-build+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
resources, but only a single
resources_root. java_test only mentions resources in the docs, not sure whether resources_root is also viable
.
Hi,
In case anyone is interested, I made a small project building the same java source using several buildsystems (ant, maven, gradle, buildr, buck, sbt, leiningen). As a benchmark it may not yet be very meaningful as I did not try a multi-module build: https://github.com/tkruse/build-bench
Several things bothered me when trying to use buck:
There is no strong notion of using the Maven conventions for organizing the file tree. The rest of the java world mostly accepted this structure:
- src
--main
--- java
--- groovy
--- scala
--- ...
--- resources
--- webapp
-- test
--- java
--- groovy
--- scala
--- ...
--- resources
Those conventions have proven themselves, they provide a "familiar face" when joining a project. I find that much better than every project inventing it's own creative solution to where to put which files, and how to name them.
Thus, when I wanted to run tests including (non-code) resources from src/main/resources and src/test/resources both, I got confused over java_library() offering to configure multipleresources, but only a single
resources_root. java_test only mentionsresources in the docs, not sure whether resources_root is also viable
.
How to use bucklets also seems to not be well documented anywhere.
All bucklets include documentation and example, e.g. [1].