summaryrefslogtreecommitdiffstats
path: root/tools/eclipse/BUILD
blob: 356dfbba3c6dcfe5db2a2a5b2d1b4fcc5a6ec5b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
load("//tools/bzl:classpath.bzl", "classpath_collector")
load("//tools/bzl:pkg_war.bzl", "LIBS", "PGMLIBS")
load(
    "//tools/bzl:plugins.bzl",
    "CORE_PLUGINS",
    "CUSTOM_PLUGINS",
    "CUSTOM_PLUGINS_TEST_DEPS",
)

TEST_DEPS = [
    "//gerrit-elasticsearch:elasticsearch_test_utils",
    "//gerrit-gpg:gpg_tests",
    "//gerrit-gwtui:ui_tests",
    "//gerrit-httpd:httpd_tests",
    "//gerrit-index:index_tests",
    "//gerrit-patch-jgit:jgit_patch_tests",
    "//gerrit-reviewdb:client_tests",
    "//gerrit-server:server_tests",
]

DEPS = [
    "//gerrit-acceptance-tests:lib",
    "//gerrit-gwtdebug:gwtdebug",
    "//gerrit-gwtui:ui_module",
    "//gerrit-main:main_lib",
    "//gerrit-plugin-gwtui:gwtui-api-lib",
    "//gerrit-server:server",
    "//lib/asciidoctor:asciidoc_lib",
    "//lib/asciidoctor:doc_indexer_lib",
    "//lib/auto:auto-value",
    "//lib/gwt:ant",
    "//lib/gwt:colt",
    "//lib/gwt:javax-validation",
    "//lib/gwt:javax-validation_src",
    "//lib/gwt:jsinterop-annotations",
    "//lib/gwt:jsinterop-annotations_src",
    "//lib/gwt:tapestry",
    "//lib/gwt:w3c-css-sac",
    "//lib/jetty:servlets",
    "//lib/prolog:compiler-lib",
    # TODO(davido): I do not understand why it must be on the Eclipse classpath
    #'//Documentation:index',
]

java_library(
    name = "classpath",
    testonly = 1,
    runtime_deps = LIBS + PGMLIBS + DEPS,
)

classpath_collector(
    name = "main_classpath_collect",
    testonly = 1,
    deps = LIBS + PGMLIBS + DEPS + TEST_DEPS +
           ["//plugins/%s:%s__plugin" % (n, n) for n in CORE_PLUGINS + CUSTOM_PLUGINS] +
           ["//plugins/%s:%s__plugin_test_deps" % (n, n) for n in CUSTOM_PLUGINS_TEST_DEPS],
)

classpath_collector(
    name = "gwt_classpath_collect",
    deps = ["//gerrit-gwtui:ui_module"],
)

classpath_collector(
    name = "autovalue_classpath_collect",
    deps = ["//lib/auto:auto-value"],
)