forked from GerritCodeReview/plugins_github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
104 lines (96 loc) · 3.11 KB
/
Copy pathBUILD
File metadata and controls
104 lines (96 loc) · 3.11 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
load(
"//plugins/github:java_library_without_header_compilation.bzl",
"java_library_without_header_compilation",
)
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_DEPS_NEVERLINK", "PLUGIN_TEST_DEPS", "gerrit_plugin")
SOURCES_WITH_LOMBOK_USAGE = [
"src/main/java/com/googlesource/gerrit/plugins/github/git/GitHubRepository.java",
"src/main/java/com/googlesource/gerrit/plugins/github/GitHubURL.java",
]
gerrit_plugin(
name = "github-plugin",
srcs = glob(
["src/main/java/**/*.java"],
exclude = SOURCES_WITH_LOMBOK_USAGE,
),
dir_name = "github",
manifest_entries = [
"Gerrit-PluginName: github-plugin",
"Gerrit-Module: com.googlesource.gerrit.plugins.github.GuiceModule",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.github.GuiceHttpModule",
"Gerrit-InitStep: com.googlesource.gerrit.plugins.github.InitGitHub",
"Implementation-Title: GitHub plugin",
"Implementation-Vendor: GerritForge",
"Implementation-URL: http://www.gerritforge.com",
],
resource_jars = ["//plugins/github/github-plugin/web:github-plugin"],
resources = glob(["src/main/resources/**/*"]),
deps = [
":github-plugin-lib",
":replication-api",
"//plugins/github/github-oauth:github-oauth-lib",
"@axis-jaxrpc//jar",
"@axis//jar",
"@com-sun-mail//jar",
"@commons-codec//jar",
"@commons-discovery//jar",
"@commons-io//jar",
"@eclipse-mylyn-github//jar",
"@github-api//jar",
"@javax-activation//jar",
"@velocity//jar",
],
)
java_library_without_header_compilation(
name = "github-plugin-lib",
dep = ":github-plugin-lib_impl",
visibility = ["//visibility:public"],
)
java_library(
name = "github-plugin-lib_impl",
srcs = SOURCES_WITH_LOMBOK_USAGE,
deps = PLUGIN_DEPS_NEVERLINK + [
":lombok",
"//plugins/github/github-oauth:github-oauth-lib",
"@axis-jaxrpc//jar",
"@axis//jar",
"@commons-codec//jar",
"@commons-discovery//jar",
"@commons-io//jar",
"@eclipse-mylyn-github//jar",
"@github-api//jar",
"@velocity//jar",
],
)
junit_tests(
name = "github-plugin_tests",
srcs = glob(["src/test/java/**/*.java"]),
tags = ["github"],
deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":github-plugin-lib",
":github-plugin__plugin",
"//javatests/com/google/gerrit/util/http/testutil",
"//plugins/github/github-oauth:github-oauth-lib",
"//plugins/replication:replication-api",
"@commons-io//jar",
"@github-api//jar",
],
)
java_plugin(
name = "lombok_plugin",
generates_api = True,
processor_class = "lombok.launch.AnnotationProcessorHider$AnnotationProcessor",
deps = ["@lombok//jar"],
)
java_library(
name = "lombok",
exported_plugins = [":lombok_plugin"],
neverlink = True,
exports = ["@lombok//jar"],
)
java_library(
name = "replication-api",
neverlink = True,
exports = ["//plugins/replication:replication-api"],
)