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 870B

1234567891011121314151617181920212223242526272829303132333435363738
  1. load("@rules_java//java:defs.bzl", "java_library")
  2. package(default_visibility = ["//visibility:public"])
  3. INSECURE_CIPHER_FACTORY = [
  4. "src/org/eclipse/jgit/transport/InsecureCipherFactory.java",
  5. ]
  6. SRCS = glob(
  7. ["src/**/*.java"],
  8. exclude = INSECURE_CIPHER_FACTORY,
  9. )
  10. RESOURCES = glob(["resources/**"])
  11. java_library(
  12. name = "jgit",
  13. srcs = SRCS,
  14. javacopts = select({
  15. "//:jdk9": ["--add-modules=java.xml.bind"],
  16. "//conditions:default": [],
  17. }),
  18. resource_strip_prefix = "org.eclipse.jgit/resources",
  19. resources = RESOURCES,
  20. deps = [
  21. ":insecure_cipher_factory",
  22. "//lib:javaewah",
  23. "//lib:jsch",
  24. "//lib:jzlib",
  25. "//lib:slf4j-api",
  26. ],
  27. )
  28. java_library(
  29. name = "insecure_cipher_factory",
  30. srcs = INSECURE_CIPHER_FACTORY,
  31. javacopts = ["-Xep:InsecureCryptoUsage:OFF"],
  32. )