2 ms·
It's very standardized. I don't have any experience with using it with things outside a Java binary, but for that use case you basically have no choice but a nu
by foota 6y ago
It's very standardized. I don't have any experience with using it with things outside a Java binary, but for that use case you basically have no choice but a number of java_library rules and a java_binary.
E.g., a simple project with no outside deps might be like (and I typed this out on my phone):
java_binary(name = "grep_bin", srcs = ["grep_main.java"], deps=["grep_lib"])
java_library(name="grep_lib", srcs =["grep_lib.java"])
Things get more opinionated when you pull in outside libraries, but even then bazel makes it fairly painless and integrates with other build systems where needed.
Take a look at the docs here for more info: https://docs.bazel.build/versions/master/be/java.html https://docs.bazel.build/versions/master/be/java.html