xref: /JGit/lib/BUILD (revision 1fd09a19a2ac7d8953ea0abed81d906aef197bab)
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(
7408b0a863SThomas Wolf    name = "sshd-core",
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    ],
8108b0a863SThomas Wolf    exports = ["@sshd-core//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(
154cdc88247SMatthias Sohn    name = "jzlib",
155cdc88247SMatthias Sohn    visibility = [
156cdc88247SMatthias Sohn        "//org.eclipse.jgit:__pkg__",
157cdc88247SMatthias Sohn        "//org.eclipse.jgit.test:__pkg__",
158cdc88247SMatthias Sohn    ],
159cdc88247SMatthias Sohn    exports = ["@jzlib//jar"],
160cdc88247SMatthias Sohn)
161cdc88247SMatthias Sohn
162cdc88247SMatthias Sohnjava_library(
163bc5014faSJonathan Nieder    name = "junit",
16402fe1e0bSJonathan Nieder    testonly = 1,
16502fe1e0bSJonathan Nieder    visibility = ["//visibility:public"],
166fa2851ceSDavid Ostrovsky    exports = [
1674d46a68aSMatthias Sohn        "@bytebuddy-agent//jar",
1684678710cSDavid Pursehouse        "@bytebuddy//jar",
16919222ce7SDavid Pursehouse        "@hamcrest-core//jar",
17019222ce7SDavid Pursehouse        "@hamcrest-library//jar",
171904e9f8bSDavid Pursehouse        "@junit//jar",
1720eea7368SMatthias Sohn        "@mockito//jar",
17338198972SMatthias Sohn        "@objenesis//jar",
1740f6ddb37SDavid Ostrovsky    ],
175bc5014faSJonathan Nieder)
176bc5014faSJonathan Nieder
177bc5014faSJonathan Niederjava_library(
1782532fa74SMatthias Sohn    name = "mockito",
1792532fa74SMatthias Sohn    testonly = 1,
1802532fa74SMatthias Sohn    visibility = ["//visibility:public"],
1812532fa74SMatthias Sohn    exports = [
1820eea7368SMatthias Sohn        "@bytebuddy-agent//jar",
183*1fd09a19SDavid Pursehouse        "@bytebuddy//jar",
184f4d7c911SDavid Pursehouse        "@mockito//jar",
1852532fa74SMatthias Sohn        "@objenesis//jar",
1862532fa74SMatthias Sohn    ],
1872532fa74SMatthias Sohn)
1882532fa74SMatthias Sohn
1892532fa74SMatthias Sohnjava_library(
190bc5014faSJonathan Nieder    name = "servlet-api",
191bc5014faSJonathan Nieder    visibility = [
192bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
193bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.server:__pkg__",
1940f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.test:__pkg__",
1950f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.junit.http:__pkg__",
196bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
1970f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
1980f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
199bc5014faSJonathan Nieder    ],
20019222ce7SDavid Pursehouse    exports = ["@servlet-api-3_1//jar"],
201bc5014faSJonathan Nieder)
202bc5014faSJonathan Nieder
203bc5014faSJonathan Niederjava_library(
204bc5014faSJonathan Nieder    name = "slf4j-api",
205bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
20619222ce7SDavid Pursehouse    exports = ["@log-api//jar"],
207bc5014faSJonathan Nieder)
2080f6ddb37SDavid Ostrovsky
2090f6ddb37SDavid Ostrovskyjava_library(
2100f6ddb37SDavid Ostrovsky    name = "slf4j-simple",
2110f6ddb37SDavid Ostrovsky    testonly = 1,
2120f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
21319222ce7SDavid Pursehouse    exports = ["@slf4j-simple//jar"],
2140f6ddb37SDavid Ostrovsky)
2150f6ddb37SDavid Ostrovsky
2160f6ddb37SDavid Ostrovskyjava_library(
2170f6ddb37SDavid Ostrovsky    name = "xz",
2180f6ddb37SDavid Ostrovsky    testonly = 1,
2190f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
22019222ce7SDavid Pursehouse    exports = ["@tukaani-xz//jar"],
2210f6ddb37SDavid Ostrovsky)
222