xref: /JGit/lib/BUILD (revision f8eefdb0034b7130ac6ea2b7710439b159225c87)
1load("@rules_java//java:defs.bzl", "java_library")
2
3java_library(
4    name = "args4j",
5    visibility = [
6        "//org.eclipse.jgit.pgm:__pkg__",
7        "//org.eclipse.jgit.pgm.test:__pkg__",
8    ],
9    exports = ["@args4j//jar"],
10)
11
12java_library(
13    name = "commons-compress",
14    visibility = [
15        "//org.eclipse.jgit.archive:__pkg__",
16        "//org.eclipse.jgit.pgm.test:__pkg__",
17        "//org.eclipse.jgit.test:__pkg__",
18    ],
19    exports = ["@commons-compress//jar"],
20)
21
22java_library(
23    name = "commons-codec",
24    exports = ["@commons-codec//jar"],
25)
26
27java_library(
28    name = "commons-logging",
29    visibility = ["//visibility:public"],
30    exports = ["@commons-logging//jar"],
31)
32
33java_library(
34    name = "eddsa",
35    visibility = [
36        "//org.eclipse.jgit.ssh.apache:__pkg__",
37        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
38        "//org.eclipse.jgit.ssh.jsch.test:__pkg__",
39    ],
40    exports = ["@eddsa//jar"],
41)
42
43java_library(
44    name = "gson",
45    visibility = [
46        "//org.eclipse.jgit.lfs:__pkg__",
47        "//org.eclipse.jgit.lfs.server:__pkg__",
48    ],
49    exports = ["@gson//jar"],
50)
51
52java_library(
53    name = "httpclient",
54    visibility = [
55        "//org.eclipse.jgit.http.apache:__pkg__",
56        "//org.eclipse.jgit.lfs.server.test:__pkg__",
57        "//org.eclipse.jgit.pgm:__pkg__",
58    ],
59    exports = ["@httpclient//jar"],
60)
61
62java_library(
63    name = "httpcore",
64    visibility = [
65        "//org.eclipse.jgit.http.apache:__pkg__",
66        "//org.eclipse.jgit.http.test:__pkg__",
67        "//org.eclipse.jgit.lfs.server:__pkg__",
68        "//org.eclipse.jgit.lfs.server.test:__pkg__",
69        "//org.eclipse.jgit.pgm:__pkg__",
70    ],
71    exports = ["@httpcore//jar"],
72)
73
74java_library(
75    name = "sshd-osgi",
76    visibility = [
77        "//org.eclipse.jgit.junit.ssh:__pkg__",
78        "//org.eclipse.jgit.ssh.apache:__pkg__",
79        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
80        "//org.eclipse.jgit.test:__pkg__",
81    ],
82    exports = ["@sshd-osgi//jar"],
83)
84
85java_library(
86    name = "sshd-sftp",
87    visibility = [
88        "//org.eclipse.jgit.junit.ssh:__pkg__",
89        "//org.eclipse.jgit.ssh.apache:__pkg__",
90        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
91        "//org.eclipse.jgit.test:__pkg__",
92    ],
93    exports = ["@sshd-sftp//jar"],
94)
95
96java_library(
97    name = "javaewah",
98    visibility = ["//visibility:public"],
99    exports = ["@javaewah//jar"],
100)
101
102java_library(
103    name = "jetty-http",
104    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
105    visibility = ["//visibility:public"],
106    exports = ["@jetty-http//jar"],
107    runtime_deps = [":commons-codec"],
108)
109
110java_library(
111    name = "jetty-io",
112    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
113    visibility = ["//visibility:public"],
114    exports = ["@jetty-io//jar"],
115)
116
117java_library(
118    name = "jetty-security",
119    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
120    visibility = ["//visibility:public"],
121    exports = ["@jetty-security//jar"],
122)
123
124java_library(
125    name = "jetty-server",
126    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
127    visibility = ["//visibility:public"],
128    exports = ["@jetty-server//jar"],
129)
130
131java_library(
132    name = "jetty-servlet",
133    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
134    visibility = ["//visibility:public"],
135    exports = [
136        "@jetty-servlet//jar",
137        "@jetty-util-ajax//jar",
138    ],
139)
140
141java_library(
142    name = "jetty-util",
143    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
144    visibility = ["//visibility:public"],
145    exports = ["@jetty-util//jar"],
146)
147
148java_library(
149    name = "jsch",
150    visibility = [
151        "//org.eclipse.jgit:__pkg__",
152        "//org.eclipse.jgit.junit.ssh:__pkg__",
153        "//org.eclipse.jgit.ssh.jsch:__pkg__",
154        "//org.eclipse.jgit.ssh.jsch.test:__pkg__",
155    ],
156    exports = ["@jsch//jar"],
157)
158
159java_library(
160    name = "bcpg",
161    visibility = [
162        "//org.eclipse.jgit:__pkg__",
163        "//org.eclipse.jgit.gpg.bc:__pkg__",
164        "//org.eclipse.jgit.gpg.bc.test:__pkg__",
165        "//org.eclipse.jgit.test:__pkg__",
166    ],
167    exports = ["@bcpg//jar"],
168)
169
170java_library(
171    name = "bcprov",
172    visibility = [
173        "//org.eclipse.jgit:__pkg__",
174        "//org.eclipse.jgit.gpg.bc:__pkg__",
175        "//org.eclipse.jgit.gpg.bc.test:__pkg__",
176        "//org.eclipse.jgit.test:__pkg__",
177    ],
178    exports = ["@bcprov//jar"],
179)
180
181java_library(
182    name = "bcpkix",
183    visibility = [
184        "//org.eclipse.jgit:__pkg__",
185        "//org.eclipse.jgit.gpg.bc:__pkg__",
186        "//org.eclipse.jgit.test:__pkg__",
187    ],
188    exports = ["@bcpkix//jar"],
189)
190
191java_library(
192    name = "jzlib",
193    visibility = [
194        "//org.eclipse.jgit:__pkg__",
195        "//org.eclipse.jgit.ssh.jsch:__pkg__",
196        "//org.eclipse.jgit.test:__pkg__",
197    ],
198    exports = ["@jzlib//jar"],
199)
200
201java_library(
202    name = "junit",
203    testonly = 1,
204    visibility = ["//visibility:public"],
205    exports = [
206        "@bytebuddy-agent//jar",
207        "@bytebuddy//jar",
208        "@hamcrest-core//jar",
209        "@hamcrest-library//jar",
210        "@junit//jar",
211        "@mockito//jar",
212        "@objenesis//jar",
213    ],
214)
215
216java_library(
217    name = "mockito",
218    testonly = 1,
219    visibility = ["//visibility:public"],
220    exports = [
221        "@bytebuddy-agent//jar",
222        "@bytebuddy//jar",
223        "@mockito//jar",
224        "@objenesis//jar",
225    ],
226)
227
228java_library(
229    name = "assertj-core",
230    testonly = 1,
231    visibility = ["//visibility:public"],
232    exports = [
233        "@assertj-core//jar",
234    ],
235)
236
237java_library(
238    name = "servlet-api",
239    visibility = [
240        "//org.eclipse.jgit.http.apache:__pkg__",
241        "//org.eclipse.jgit.http.server:__pkg__",
242        "//org.eclipse.jgit.http.test:__pkg__",
243        "//org.eclipse.jgit.junit.http:__pkg__",
244        "//org.eclipse.jgit.lfs.server:__pkg__",
245        "//org.eclipse.jgit.lfs.server.test:__pkg__",
246        "//org.eclipse.jgit.pgm:__pkg__",
247    ],
248    exports = ["@servlet-api//jar"],
249)
250
251java_library(
252    name = "slf4j-api",
253    visibility = ["//visibility:public"],
254    exports = ["@log-api//jar"],
255)
256
257java_library(
258    name = "slf4j-simple",
259    testonly = 1,
260    visibility = ["//visibility:public"],
261    exports = ["@slf4j-simple//jar"],
262)
263
264java_library(
265    name = "xz",
266    testonly = 1,
267    visibility = ["//visibility:public"],
268    exports = ["@tukaani-xz//jar"],
269)
270