include_defs("//third_party/java/DEFS")

prebuilt_jar_with_license(
  name = "closure_compiler_externs",
  binary_jar = "closure-compiler-externs-v20150315.jar",
  source_jar = "closure-compiler-externs-v20150315-src.jar",
)

prebuilt_jar_with_license(
  name = "closure_compiler",
  binary_jar = "closure-compiler-v20150315.jar",
  source_jar = "closure-compiler-v20150315-src.jar",
  deps = [
    ":closure_compiler_externs",
    "//third_party/java/args4j:args4j",
    "//third_party/java/gson:gson",
    "//third_party/java/guava:guava",
    "//third_party/java/jsr305:jsr305",
    "//third_party/java/protobuf:protobuf",
  ],
  visibility = ["PUBLIC"],
)

java_binary(
  name =  "compiler",
  deps = [":closure_compiler"],
  main_class = "com.google.javascript.jscomp.CommandLineRunner",
)
