| java_library( |
| name = "servlet-api", |
| neverlink = 1, |
| exports = ["//lib:servlet-api_2_5"], |
| ) |
| |
| java_library( |
| name = "servlet", |
| srcs = glob(["src/main/java/**/*.java"]), |
| resources = glob(["src/main/resources/**/*"]), |
| visibility = ["//visibility:public"], |
| deps = [ |
| ":servlet-api", |
| "//blame-cache:lib", |
| "//lib:autolink", |
| "//lib:cm-autolink", |
| "//lib:commonmark", |
| "//lib:commons-lang", |
| "//lib:gfm-strikethrough", |
| "//lib:gfm-tables", |
| "//lib:gson", |
| "//lib:guava", |
| "//lib:joda-time", |
| "//lib:jsr305", |
| "//lib:prettify", |
| "//lib/guice", |
| "//lib/jgit", |
| "//lib/jgit:jgit-archive", |
| "//lib/jgit:jgit-servlet", |
| "//lib/slf4j:slf4j-api", |
| "//lib/soy", |
| ], |
| ) |
| |
| java_library( |
| name = "testutil", |
| srcs = glob( |
| ["src/test/java/**/*.java"], |
| exclude = ["src/test/java/**/*Test.java"], |
| ) + glob(["**/ServletTest.java"]), |
| deps = [ |
| ":servlet", |
| "//lib:gson", |
| "//lib:guava", |
| "//lib:servlet-api_2_5", |
| "//lib:truth", |
| "//lib/jgit", |
| "//lib/jgit:jgit-servlet", |
| "//lib/jgit:junit", |
| "//lib/junit", |
| ], |
| ) |
| |
| load("@com_googlesource_gerrit_bazlets//tools:junit.bzl", "junit_tests") |
| |
| junit_tests( |
| name = "ServletTests", |
| srcs = glob( |
| [ |
| "src/test/java/**/*Test.java", |
| ], |
| exclude = ["**/ServletTest.java"], |
| ), |
| runtime_deps = ["//lib/junit:hamcrest-core"], |
| deps = [ |
| ":servlet", |
| ":testutil", |
| "//lib:autolink", |
| "//lib:cm-autolink", |
| "//lib:commonmark", |
| "//lib:gfm-strikethrough", |
| "//lib:gfm-tables", |
| "//lib:gson", |
| "//lib:guava", |
| "//lib:joda-time", |
| "//lib:servlet-api_2_5", |
| "//lib:truth", |
| "//lib/jgit", |
| "//lib/jgit:jgit-servlet", |
| "//lib/jgit:junit", |
| "//lib/junit", |
| "//lib/soy", |
| ], |
| ) |