You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BUILD 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. load("@rules_java//java:defs.bzl", "java_binary", "java_import", "java_library")
  2. java_library(
  3. name = "pgm",
  4. srcs = glob(["src/**/*.java"]),
  5. resource_strip_prefix = "org.eclipse.jgit.pgm/resources",
  6. resources = glob(["resources/**"]),
  7. visibility = ["//visibility:public"],
  8. deps = [
  9. ":services",
  10. "//lib:args4j",
  11. "//lib:commons-logging",
  12. "//lib:httpclient",
  13. "//lib:httpcore",
  14. "//lib:jetty-http",
  15. "//lib:jetty-io",
  16. "//lib:jetty-security",
  17. "//lib:jetty-server",
  18. "//lib:jetty-servlet",
  19. "//lib:jetty-util",
  20. "//lib:servlet-api",
  21. "//org.eclipse.jgit.archive:jgit-archive",
  22. "//org.eclipse.jgit.http.apache:http-apache",
  23. "//org.eclipse.jgit:jgit",
  24. "//org.eclipse.jgit.lfs:jgit-lfs",
  25. "//org.eclipse.jgit.lfs.server:jgit-lfs-server",
  26. "//org.eclipse.jgit.ssh.apache:ssh-apache",
  27. "//org.eclipse.jgit.ui:ui",
  28. ],
  29. )
  30. java_binary(
  31. name = "jgit",
  32. main_class = "org.eclipse.jgit.pgm.Main",
  33. runtime_deps = [":pgm"],
  34. )
  35. java_import(
  36. name = "services",
  37. jars = [":services_jar"],
  38. )
  39. genrule(
  40. name = "services_jar",
  41. srcs = glob(["META-INF/services/*"]),
  42. outs = ["services_jar.jar"],
  43. cmd = "r=$$PWD && cd org.eclipse.jgit.pgm && zip -qr $$r/$@ .",
  44. )