prebuilt_jar()rule is used to identify a JAR file that is checked into our repository as a precompiled binary rather than one that is built from source by Buck. Frequently, these are used to reference third-party JAR files (such as junit.jar) and are used as dependencies of
The name of the rule.
Path to the pre-built JAR file.
Path to a JAR file that contains the
.javafiles to create the
binary_jar. This is frequently provided for debugging purposes.
URL to the Javadoc for the
.classfiles in the
Rules that must be built before this rule. Because the
binary_jaris already built, there should be nothing to build, so this should be empty.
List of build target patterns that identify the build rules that can include this rule in its
prebuilt_jar( name = 'junit', binary_jar = 'junit-4.8.2.jar', source_jar = 'junit-4.8.2-sources.jar', javadoc_url = 'http://kentbeck.github.com/junit/javadoc/4.8/', ) java_library( name = 'tests', srcs = glob(['tests/**/*Test.java']), deps = [ ':junit', ], )