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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. load(
  2. "@com_googlesource_gerrit_bazlets//tools:junit.bzl",
  3. "junit_tests",
  4. )
  5. load("@rules_java//java:defs.bzl", "java_library")
  6. TEST_BASE = ["tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java"]
  7. DEPS = [
  8. "//org.eclipse.jgit.lfs.test:helpers",
  9. "//org.eclipse.jgit:jgit",
  10. "//org.eclipse.jgit.junit:junit",
  11. "//org.eclipse.jgit.junit.http:junit-http",
  12. "//org.eclipse.jgit.lfs:jgit-lfs",
  13. "//org.eclipse.jgit.lfs.server:jgit-lfs-server",
  14. "//lib:commons-logging",
  15. "//lib:httpcore",
  16. "//lib:httpclient",
  17. "//lib:junit",
  18. "//lib:jetty-http",
  19. "//lib:jetty-io",
  20. "//lib:jetty-server",
  21. "//lib:jetty-servlet",
  22. "//lib:jetty-security",
  23. "//lib:jetty-util",
  24. "//lib:servlet-api",
  25. ]
  26. junit_tests(
  27. name = "lfs_server",
  28. srcs = glob(
  29. ["tst/**/*.java"],
  30. exclude = TEST_BASE,
  31. ),
  32. jvm_flags = [
  33. "-Xmx512m",
  34. "-Dfile.encoding=UTF-8",
  35. ],
  36. tags = ["lfs-server"],
  37. deps = DEPS + [
  38. ":helpers",
  39. ],
  40. )
  41. java_library(
  42. name = "helpers",
  43. testonly = 1,
  44. srcs = TEST_BASE,
  45. deps = DEPS,
  46. )