xref: /JGit/lib/BUILD (revision f8eefdb0034b7130ac6ea2b7710439b159225c87)
185cea8c5SDavid Pursehouseload("@rules_java//java:defs.bzl", "java_library")
285cea8c5SDavid Pursehouse
3bc5014faSJonathan Niederjava_library(
40f6ddb37SDavid Ostrovsky    name = "args4j",
50f6ddb37SDavid Ostrovsky    visibility = [
60f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
70f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm.test:__pkg__",
80f6ddb37SDavid Ostrovsky    ],
90f6ddb37SDavid Ostrovsky    exports = ["@args4j//jar"],
100f6ddb37SDavid Ostrovsky)
110f6ddb37SDavid Ostrovsky
120f6ddb37SDavid Ostrovskyjava_library(
13bc5014faSJonathan Nieder    name = "commons-compress",
140f6ddb37SDavid Ostrovsky    visibility = [
150f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.archive:__pkg__",
160f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm.test:__pkg__",
170aa8eca5SDavid Pursehouse        "//org.eclipse.jgit.test:__pkg__",
180f6ddb37SDavid Ostrovsky    ],
1919222ce7SDavid Pursehouse    exports = ["@commons-compress//jar"],
20bc5014faSJonathan Nieder)
21bc5014faSJonathan Nieder
22bc5014faSJonathan Niederjava_library(
230f6ddb37SDavid Ostrovsky    name = "commons-codec",
2419222ce7SDavid Pursehouse    exports = ["@commons-codec//jar"],
250f6ddb37SDavid Ostrovsky)
260f6ddb37SDavid Ostrovsky
270f6ddb37SDavid Ostrovskyjava_library(
280f6ddb37SDavid Ostrovsky    name = "commons-logging",
290f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
3019222ce7SDavid Pursehouse    exports = ["@commons-logging//jar"],
310f6ddb37SDavid Ostrovsky)
320f6ddb37SDavid Ostrovsky
330f6ddb37SDavid Ostrovskyjava_library(
34db627c41SThomas Wolf    name = "eddsa",
35db627c41SThomas Wolf    visibility = [
36db627c41SThomas Wolf        "//org.eclipse.jgit.ssh.apache:__pkg__",
37db627c41SThomas Wolf        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
388d2d6836SMatthias Sohn        "//org.eclipse.jgit.ssh.jsch.test:__pkg__",
39db627c41SThomas Wolf    ],
40db627c41SThomas Wolf    exports = ["@eddsa//jar"],
41db627c41SThomas Wolf)
42db627c41SThomas Wolf
43db627c41SThomas Wolfjava_library(
44bc5014faSJonathan Nieder    name = "gson",
4535bb7cccSHan-Wen Nienhuys    visibility = [
4635bb7cccSHan-Wen Nienhuys        "//org.eclipse.jgit.lfs:__pkg__",
4735bb7cccSHan-Wen Nienhuys        "//org.eclipse.jgit.lfs.server:__pkg__",
4835bb7cccSHan-Wen Nienhuys    ],
49bc5014faSJonathan Nieder    exports = ["@gson//jar"],
50bc5014faSJonathan Nieder)
51bc5014faSJonathan Nieder
52bc5014faSJonathan Niederjava_library(
53bc5014faSJonathan Nieder    name = "httpclient",
540f6ddb37SDavid Ostrovsky    visibility = [
550f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.apache:__pkg__",
560f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
570f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
580f6ddb37SDavid Ostrovsky    ],
59bc5014faSJonathan Nieder    exports = ["@httpclient//jar"],
60bc5014faSJonathan Nieder)
61bc5014faSJonathan Nieder
62bc5014faSJonathan Niederjava_library(
63bc5014faSJonathan Nieder    name = "httpcore",
64bc5014faSJonathan Nieder    visibility = [
65bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
66280707b0SGabriel Couto        "//org.eclipse.jgit.http.test:__pkg__",
67bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
680f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
690f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
70bc5014faSJonathan Nieder    ],
71bc5014faSJonathan Nieder    exports = ["@httpcore//jar"],
72bc5014faSJonathan Nieder)
73bc5014faSJonathan Nieder
74bc5014faSJonathan Niederjava_library(
7586cee68eSThomas Wolf    name = "sshd-osgi",
7608b0a863SThomas Wolf    visibility = [
771316d43eSThomas Wolf        "//org.eclipse.jgit.junit.ssh:__pkg__",
78488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache:__pkg__",
79488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
80f4c0189fSDavid Pursehouse        "//org.eclipse.jgit.test:__pkg__",
8108b0a863SThomas Wolf    ],
8286cee68eSThomas Wolf    exports = ["@sshd-osgi//jar"],
8308b0a863SThomas Wolf)
8408b0a863SThomas Wolf
8508b0a863SThomas Wolfjava_library(
8608b0a863SThomas Wolf    name = "sshd-sftp",
8708b0a863SThomas Wolf    visibility = [
881316d43eSThomas Wolf        "//org.eclipse.jgit.junit.ssh:__pkg__",
89488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache:__pkg__",
90488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
91f4c0189fSDavid Pursehouse        "//org.eclipse.jgit.test:__pkg__",
9208b0a863SThomas Wolf    ],
9308b0a863SThomas Wolf    exports = ["@sshd-sftp//jar"],
9408b0a863SThomas Wolf)
9508b0a863SThomas Wolf
9608b0a863SThomas Wolfjava_library(
97bc5014faSJonathan Nieder    name = "javaewah",
98bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
99bc5014faSJonathan Nieder    exports = ["@javaewah//jar"],
100bc5014faSJonathan Nieder)
101bc5014faSJonathan Nieder
102bc5014faSJonathan Niederjava_library(
1030f6ddb37SDavid Ostrovsky    name = "jetty-http",
1040f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1050f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
10619222ce7SDavid Pursehouse    exports = ["@jetty-http//jar"],
1070f6ddb37SDavid Ostrovsky    runtime_deps = [":commons-codec"],
1080f6ddb37SDavid Ostrovsky)
1090f6ddb37SDavid Ostrovsky
1100f6ddb37SDavid Ostrovskyjava_library(
1110f6ddb37SDavid Ostrovsky    name = "jetty-io",
1120f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1130f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
11419222ce7SDavid Pursehouse    exports = ["@jetty-io//jar"],
1150f6ddb37SDavid Ostrovsky)
1160f6ddb37SDavid Ostrovsky
1170f6ddb37SDavid Ostrovskyjava_library(
1180f6ddb37SDavid Ostrovsky    name = "jetty-security",
1190f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1200f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
12119222ce7SDavid Pursehouse    exports = ["@jetty-security//jar"],
1220f6ddb37SDavid Ostrovsky)
1230f6ddb37SDavid Ostrovsky
1240f6ddb37SDavid Ostrovskyjava_library(
1250f6ddb37SDavid Ostrovsky    name = "jetty-server",
1260f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1270f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
12819222ce7SDavid Pursehouse    exports = ["@jetty-server//jar"],
1290f6ddb37SDavid Ostrovsky)
1300f6ddb37SDavid Ostrovsky
1310f6ddb37SDavid Ostrovskyjava_library(
1320f6ddb37SDavid Ostrovsky    name = "jetty-servlet",
1330f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1340f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
1354120d17bSMatthias Sohn    exports = [
1364120d17bSMatthias Sohn        "@jetty-servlet//jar",
1374120d17bSMatthias Sohn        "@jetty-util-ajax//jar",
1384120d17bSMatthias Sohn    ],
1390f6ddb37SDavid Ostrovsky)
1400f6ddb37SDavid Ostrovsky
1410f6ddb37SDavid Ostrovskyjava_library(
1420f6ddb37SDavid Ostrovsky    name = "jetty-util",
1430f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1440f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
14519222ce7SDavid Pursehouse    exports = ["@jetty-util//jar"],
1460f6ddb37SDavid Ostrovsky)
1470f6ddb37SDavid Ostrovsky
1480f6ddb37SDavid Ostrovskyjava_library(
149bc5014faSJonathan Nieder    name = "jsch",
150c506f8d2SThomas Wolf    visibility = [
151c506f8d2SThomas Wolf        "//org.eclipse.jgit:__pkg__",
1528d2d6836SMatthias Sohn        "//org.eclipse.jgit.junit.ssh:__pkg__",
1538d2d6836SMatthias Sohn        "//org.eclipse.jgit.ssh.jsch:__pkg__",
1548d2d6836SMatthias Sohn        "//org.eclipse.jgit.ssh.jsch.test:__pkg__",
155c506f8d2SThomas Wolf    ],
156bc5014faSJonathan Nieder    exports = ["@jsch//jar"],
157bc5014faSJonathan Nieder)
158bc5014faSJonathan Nieder
159bc5014faSJonathan Niederjava_library(
160137e91a4SMedha Bhargav Prabhala    name = "bcpg",
161137e91a4SMedha Bhargav Prabhala    visibility = [
162137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit:__pkg__",
16377848d63SMatthias Sohn        "//org.eclipse.jgit.gpg.bc:__pkg__",
16464cbea8aSThomas Wolf        "//org.eclipse.jgit.gpg.bc.test:__pkg__",
165*f8eefdb0SDavid Ostrovsky        "//org.eclipse.jgit.test:__pkg__",
166137e91a4SMedha Bhargav Prabhala    ],
1675e4be72bSDavid Ostrovsky    exports = ["@bcpg//jar"],
168137e91a4SMedha Bhargav Prabhala)
169137e91a4SMedha Bhargav Prabhala
170137e91a4SMedha Bhargav Prabhalajava_library(
171137e91a4SMedha Bhargav Prabhala    name = "bcprov",
172137e91a4SMedha Bhargav Prabhala    visibility = [
173137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit:__pkg__",
17477848d63SMatthias Sohn        "//org.eclipse.jgit.gpg.bc:__pkg__",
17564cbea8aSThomas Wolf        "//org.eclipse.jgit.gpg.bc.test:__pkg__",
176*f8eefdb0SDavid Ostrovsky        "//org.eclipse.jgit.test:__pkg__",
177137e91a4SMedha Bhargav Prabhala    ],
1785e4be72bSDavid Ostrovsky    exports = ["@bcprov//jar"],
179137e91a4SMedha Bhargav Prabhala)
180137e91a4SMedha Bhargav Prabhala
181137e91a4SMedha Bhargav Prabhalajava_library(
182137e91a4SMedha Bhargav Prabhala    name = "bcpkix",
183137e91a4SMedha Bhargav Prabhala    visibility = [
184137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit:__pkg__",
18577848d63SMatthias Sohn        "//org.eclipse.jgit.gpg.bc:__pkg__",
186137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit.test:__pkg__",
187137e91a4SMedha Bhargav Prabhala    ],
1885e4be72bSDavid Ostrovsky    exports = ["@bcpkix//jar"],
189137e91a4SMedha Bhargav Prabhala)
190137e91a4SMedha Bhargav Prabhala
191137e91a4SMedha Bhargav Prabhalajava_library(
192cdc88247SMatthias Sohn    name = "jzlib",
193cdc88247SMatthias Sohn    visibility = [
194cdc88247SMatthias Sohn        "//org.eclipse.jgit:__pkg__",
1958d2d6836SMatthias Sohn        "//org.eclipse.jgit.ssh.jsch:__pkg__",
196cdc88247SMatthias Sohn        "//org.eclipse.jgit.test:__pkg__",
197cdc88247SMatthias Sohn    ],
198cdc88247SMatthias Sohn    exports = ["@jzlib//jar"],
199cdc88247SMatthias Sohn)
200cdc88247SMatthias Sohn
201cdc88247SMatthias Sohnjava_library(
202bc5014faSJonathan Nieder    name = "junit",
20302fe1e0bSJonathan Nieder    testonly = 1,
20402fe1e0bSJonathan Nieder    visibility = ["//visibility:public"],
205fa2851ceSDavid Ostrovsky    exports = [
2064d46a68aSMatthias Sohn        "@bytebuddy-agent//jar",
2074678710cSDavid Pursehouse        "@bytebuddy//jar",
20819222ce7SDavid Pursehouse        "@hamcrest-core//jar",
20919222ce7SDavid Pursehouse        "@hamcrest-library//jar",
210904e9f8bSDavid Pursehouse        "@junit//jar",
2110eea7368SMatthias Sohn        "@mockito//jar",
21238198972SMatthias Sohn        "@objenesis//jar",
2130f6ddb37SDavid Ostrovsky    ],
214bc5014faSJonathan Nieder)
215bc5014faSJonathan Nieder
216bc5014faSJonathan Niederjava_library(
2172532fa74SMatthias Sohn    name = "mockito",
2182532fa74SMatthias Sohn    testonly = 1,
2192532fa74SMatthias Sohn    visibility = ["//visibility:public"],
2202532fa74SMatthias Sohn    exports = [
2210eea7368SMatthias Sohn        "@bytebuddy-agent//jar",
2221fd09a19SDavid Pursehouse        "@bytebuddy//jar",
223f4d7c911SDavid Pursehouse        "@mockito//jar",
2242532fa74SMatthias Sohn        "@objenesis//jar",
2252532fa74SMatthias Sohn    ],
2262532fa74SMatthias Sohn)
2272532fa74SMatthias Sohn
2282532fa74SMatthias Sohnjava_library(
2298ada9048SMatthias Sohn    name = "assertj-core",
2308ada9048SMatthias Sohn    testonly = 1,
2318ada9048SMatthias Sohn    visibility = ["//visibility:public"],
2328ada9048SMatthias Sohn    exports = [
2338ada9048SMatthias Sohn        "@assertj-core//jar",
2348ada9048SMatthias Sohn    ],
2358ada9048SMatthias Sohn)
2368ada9048SMatthias Sohn
2378ada9048SMatthias Sohnjava_library(
238bc5014faSJonathan Nieder    name = "servlet-api",
239bc5014faSJonathan Nieder    visibility = [
240bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
241bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.server:__pkg__",
2420f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.test:__pkg__",
2430f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.junit.http:__pkg__",
244bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
2450f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
2460f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
247bc5014faSJonathan Nieder    ],
2483b5a4416SLuca Milanesio    exports = ["@servlet-api//jar"],
249bc5014faSJonathan Nieder)
250bc5014faSJonathan Nieder
251bc5014faSJonathan Niederjava_library(
252bc5014faSJonathan Nieder    name = "slf4j-api",
253bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
25419222ce7SDavid Pursehouse    exports = ["@log-api//jar"],
255bc5014faSJonathan Nieder)
2560f6ddb37SDavid Ostrovsky
2570f6ddb37SDavid Ostrovskyjava_library(
2580f6ddb37SDavid Ostrovsky    name = "slf4j-simple",
2590f6ddb37SDavid Ostrovsky    testonly = 1,
2600f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
26119222ce7SDavid Pursehouse    exports = ["@slf4j-simple//jar"],
2620f6ddb37SDavid Ostrovsky)
2630f6ddb37SDavid Ostrovsky
2640f6ddb37SDavid Ostrovskyjava_library(
2650f6ddb37SDavid Ostrovsky    name = "xz",
2660f6ddb37SDavid Ostrovsky    testonly = 1,
2670f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
26819222ce7SDavid Pursehouse    exports = ["@tukaani-xz//jar"],
2690f6ddb37SDavid Ostrovsky)
270