xref: /JGit/lib/BUILD (revision 3b5a4416aaf69f9b5184e332c54ad2997c0b2fe9)
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__",
38db627c41SThomas Wolf    ],
39db627c41SThomas Wolf    exports = ["@eddsa//jar"],
40db627c41SThomas Wolf)
41db627c41SThomas Wolf
42db627c41SThomas Wolfjava_library(
43bc5014faSJonathan Nieder    name = "gson",
4435bb7cccSHan-Wen Nienhuys    visibility = [
4535bb7cccSHan-Wen Nienhuys        "//org.eclipse.jgit.lfs:__pkg__",
4635bb7cccSHan-Wen Nienhuys        "//org.eclipse.jgit.lfs.server:__pkg__",
4735bb7cccSHan-Wen Nienhuys    ],
48bc5014faSJonathan Nieder    exports = ["@gson//jar"],
49bc5014faSJonathan Nieder)
50bc5014faSJonathan Nieder
51bc5014faSJonathan Niederjava_library(
52bc5014faSJonathan Nieder    name = "httpclient",
530f6ddb37SDavid Ostrovsky    visibility = [
540f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.apache:__pkg__",
550f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
560f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
570f6ddb37SDavid Ostrovsky    ],
58bc5014faSJonathan Nieder    exports = ["@httpclient//jar"],
59bc5014faSJonathan Nieder)
60bc5014faSJonathan Nieder
61bc5014faSJonathan Niederjava_library(
62bc5014faSJonathan Nieder    name = "httpcore",
63bc5014faSJonathan Nieder    visibility = [
64bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
65280707b0SGabriel Couto        "//org.eclipse.jgit.http.test:__pkg__",
66bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
670f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
680f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
69bc5014faSJonathan Nieder    ],
70bc5014faSJonathan Nieder    exports = ["@httpcore//jar"],
71bc5014faSJonathan Nieder)
72bc5014faSJonathan Nieder
73bc5014faSJonathan Niederjava_library(
7486cee68eSThomas Wolf    name = "sshd-osgi",
7508b0a863SThomas Wolf    visibility = [
761316d43eSThomas Wolf        "//org.eclipse.jgit.junit.ssh:__pkg__",
77488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache:__pkg__",
78488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
79f4c0189fSDavid Pursehouse        "//org.eclipse.jgit.test:__pkg__",
8008b0a863SThomas Wolf    ],
8186cee68eSThomas Wolf    exports = ["@sshd-osgi//jar"],
8208b0a863SThomas Wolf)
8308b0a863SThomas Wolf
8408b0a863SThomas Wolfjava_library(
8508b0a863SThomas Wolf    name = "sshd-sftp",
8608b0a863SThomas Wolf    visibility = [
871316d43eSThomas Wolf        "//org.eclipse.jgit.junit.ssh:__pkg__",
88488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache:__pkg__",
89488d9557SThomas Wolf        "//org.eclipse.jgit.ssh.apache.test:__pkg__",
90f4c0189fSDavid Pursehouse        "//org.eclipse.jgit.test:__pkg__",
9108b0a863SThomas Wolf    ],
9208b0a863SThomas Wolf    exports = ["@sshd-sftp//jar"],
9308b0a863SThomas Wolf)
9408b0a863SThomas Wolf
9508b0a863SThomas Wolfjava_library(
96bc5014faSJonathan Nieder    name = "javaewah",
97bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
98bc5014faSJonathan Nieder    exports = ["@javaewah//jar"],
99bc5014faSJonathan Nieder)
100bc5014faSJonathan Nieder
101bc5014faSJonathan Niederjava_library(
1020f6ddb37SDavid Ostrovsky    name = "jetty-http",
1030f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1040f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
10519222ce7SDavid Pursehouse    exports = ["@jetty-http//jar"],
1060f6ddb37SDavid Ostrovsky    runtime_deps = [":commons-codec"],
1070f6ddb37SDavid Ostrovsky)
1080f6ddb37SDavid Ostrovsky
1090f6ddb37SDavid Ostrovskyjava_library(
1100f6ddb37SDavid Ostrovsky    name = "jetty-io",
1110f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1120f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
11319222ce7SDavid Pursehouse    exports = ["@jetty-io//jar"],
1140f6ddb37SDavid Ostrovsky)
1150f6ddb37SDavid Ostrovsky
1160f6ddb37SDavid Ostrovskyjava_library(
1170f6ddb37SDavid Ostrovsky    name = "jetty-security",
1180f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1190f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
12019222ce7SDavid Pursehouse    exports = ["@jetty-security//jar"],
1210f6ddb37SDavid Ostrovsky)
1220f6ddb37SDavid Ostrovsky
1230f6ddb37SDavid Ostrovskyjava_library(
1240f6ddb37SDavid Ostrovsky    name = "jetty-server",
1250f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1260f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
12719222ce7SDavid Pursehouse    exports = ["@jetty-server//jar"],
1280f6ddb37SDavid Ostrovsky)
1290f6ddb37SDavid Ostrovsky
1300f6ddb37SDavid Ostrovskyjava_library(
1310f6ddb37SDavid Ostrovsky    name = "jetty-servlet",
1320f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1330f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
13419222ce7SDavid Pursehouse    exports = ["@jetty-servlet//jar"],
1350f6ddb37SDavid Ostrovsky)
1360f6ddb37SDavid Ostrovsky
1370f6ddb37SDavid Ostrovskyjava_library(
1380f6ddb37SDavid Ostrovsky    name = "jetty-util",
1390f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1400f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
14119222ce7SDavid Pursehouse    exports = ["@jetty-util//jar"],
1420f6ddb37SDavid Ostrovsky)
1430f6ddb37SDavid Ostrovsky
1440f6ddb37SDavid Ostrovskyjava_library(
145bc5014faSJonathan Nieder    name = "jsch",
146c506f8d2SThomas Wolf    visibility = [
147c506f8d2SThomas Wolf        "//org.eclipse.jgit:__pkg__",
148c506f8d2SThomas Wolf        "//org.eclipse.jgit.test:__pkg__",
149c506f8d2SThomas Wolf    ],
150bc5014faSJonathan Nieder    exports = ["@jsch//jar"],
151bc5014faSJonathan Nieder)
152bc5014faSJonathan Nieder
153bc5014faSJonathan Niederjava_library(
154137e91a4SMedha Bhargav Prabhala    name = "bcpg",
155137e91a4SMedha Bhargav Prabhala    visibility = [
156137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit:__pkg__",
157137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit.test:__pkg__",
158137e91a4SMedha Bhargav Prabhala    ],
1595e4be72bSDavid Ostrovsky    exports = ["@bcpg//jar"],
160137e91a4SMedha Bhargav Prabhala)
161137e91a4SMedha Bhargav Prabhala
162137e91a4SMedha Bhargav Prabhalajava_library(
163137e91a4SMedha Bhargav Prabhala    name = "bcprov",
164137e91a4SMedha Bhargav Prabhala    visibility = [
165137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit:__pkg__",
166137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit.test:__pkg__",
167137e91a4SMedha Bhargav Prabhala    ],
1685e4be72bSDavid Ostrovsky    exports = ["@bcprov//jar"],
169137e91a4SMedha Bhargav Prabhala)
170137e91a4SMedha Bhargav Prabhala
171137e91a4SMedha Bhargav Prabhalajava_library(
172137e91a4SMedha Bhargav Prabhala    name = "bcpkix",
173137e91a4SMedha Bhargav Prabhala    visibility = [
174137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit:__pkg__",
175137e91a4SMedha Bhargav Prabhala        "//org.eclipse.jgit.test:__pkg__",
176137e91a4SMedha Bhargav Prabhala    ],
1775e4be72bSDavid Ostrovsky    exports = ["@bcpkix//jar"],
178137e91a4SMedha Bhargav Prabhala)
179137e91a4SMedha Bhargav Prabhala
180137e91a4SMedha Bhargav Prabhalajava_library(
181cdc88247SMatthias Sohn    name = "jzlib",
182cdc88247SMatthias Sohn    visibility = [
183cdc88247SMatthias Sohn        "//org.eclipse.jgit:__pkg__",
184cdc88247SMatthias Sohn        "//org.eclipse.jgit.test:__pkg__",
185cdc88247SMatthias Sohn    ],
186cdc88247SMatthias Sohn    exports = ["@jzlib//jar"],
187cdc88247SMatthias Sohn)
188cdc88247SMatthias Sohn
189cdc88247SMatthias Sohnjava_library(
190bc5014faSJonathan Nieder    name = "junit",
19102fe1e0bSJonathan Nieder    testonly = 1,
19202fe1e0bSJonathan Nieder    visibility = ["//visibility:public"],
193fa2851ceSDavid Ostrovsky    exports = [
1944d46a68aSMatthias Sohn        "@bytebuddy-agent//jar",
1954678710cSDavid Pursehouse        "@bytebuddy//jar",
19619222ce7SDavid Pursehouse        "@hamcrest-core//jar",
19719222ce7SDavid Pursehouse        "@hamcrest-library//jar",
198904e9f8bSDavid Pursehouse        "@junit//jar",
1990eea7368SMatthias Sohn        "@mockito//jar",
20038198972SMatthias Sohn        "@objenesis//jar",
2010f6ddb37SDavid Ostrovsky    ],
202bc5014faSJonathan Nieder)
203bc5014faSJonathan Nieder
204bc5014faSJonathan Niederjava_library(
2052532fa74SMatthias Sohn    name = "mockito",
2062532fa74SMatthias Sohn    testonly = 1,
2072532fa74SMatthias Sohn    visibility = ["//visibility:public"],
2082532fa74SMatthias Sohn    exports = [
2090eea7368SMatthias Sohn        "@bytebuddy-agent//jar",
2101fd09a19SDavid Pursehouse        "@bytebuddy//jar",
211f4d7c911SDavid Pursehouse        "@mockito//jar",
2122532fa74SMatthias Sohn        "@objenesis//jar",
2132532fa74SMatthias Sohn    ],
2142532fa74SMatthias Sohn)
2152532fa74SMatthias Sohn
2162532fa74SMatthias Sohnjava_library(
217bc5014faSJonathan Nieder    name = "servlet-api",
218bc5014faSJonathan Nieder    visibility = [
219bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
220bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.server:__pkg__",
2210f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.test:__pkg__",
2220f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.junit.http:__pkg__",
223bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
2240f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
2250f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
226bc5014faSJonathan Nieder    ],
227*3b5a4416SLuca Milanesio    exports = ["@servlet-api//jar"],
228bc5014faSJonathan Nieder)
229bc5014faSJonathan Nieder
230bc5014faSJonathan Niederjava_library(
231bc5014faSJonathan Nieder    name = "slf4j-api",
232bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
23319222ce7SDavid Pursehouse    exports = ["@log-api//jar"],
234bc5014faSJonathan Nieder)
2350f6ddb37SDavid Ostrovsky
2360f6ddb37SDavid Ostrovskyjava_library(
2370f6ddb37SDavid Ostrovsky    name = "slf4j-simple",
2380f6ddb37SDavid Ostrovsky    testonly = 1,
2390f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
24019222ce7SDavid Pursehouse    exports = ["@slf4j-simple//jar"],
2410f6ddb37SDavid Ostrovsky)
2420f6ddb37SDavid Ostrovsky
2430f6ddb37SDavid Ostrovskyjava_library(
2440f6ddb37SDavid Ostrovsky    name = "xz",
2450f6ddb37SDavid Ostrovsky    testonly = 1,
2460f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
24719222ce7SDavid Pursehouse    exports = ["@tukaani-xz//jar"],
2480f6ddb37SDavid Ostrovsky)
249