aboutsummaryrefslogtreecommitdiffstats
path: root/BUILD
blob: 5e0164baf346b3bff7401d03e4da4f9c7b2b96f8 (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
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS", "gerrit_plugin")
load("//tools/bzl:js.bzl", "gerrit_js_bundle")

gerrit_plugin(
    name = "gerrit-plugin-info-banner",
    srcs = glob(["src/main/java/**/*.java"]),
    manifest_entries = [
        "Gerrit-PluginName: gerrit-plugin-info-banner",
        "Gerrit-Module: org.qtproject.codereview.gerritinfobanner.PluginModule",
        "Gerrit-HttpModule: org.qtproject.codereview.gerritinfobanner.HttpModule",
        "Implementation-Title: Gerrit Info Banner",
        "Implementation-URL: https://codereview.qt-project.org/qtqa/gerrit-plugin-info-banner.git",
    ],
    resource_jars = [":banner-info-ui"],
    resources = glob(["src/main/resources/**/*"]),
    deps = ["@commons-text//jar"],
)

gerrit_js_bundle(
    name = "banner-info-ui",
    srcs = glob(["static/*.js"]),
    entry_point = "static/gerrit-info-banner-ui.js",
)

junit_tests(
    name = "gerritinfobanner_tests",
    size = "large",
    srcs = glob(["src/test/java/**/*IT.java"]),
    tags = ["gerritinfobanner"],
    visibility = ["//visibility:public"],
    deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [
        ":gerrit-plugin-info-banner__plugin",
    ],
)