xref: /JGit/lib/BUILD (revision 85cea8c583ea08dab8cf8de2daafcb4ba9629ae5)
1*85cea8c5SDavid Pursehouseload("@rules_java//java:defs.bzl", "java_library")
2*85cea8c5SDavid 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    ],
19af547cf0SDavid Pursehouse    exports = ["@commons-compress//jar"],
20bc5014faSJonathan Nieder)
21bc5014faSJonathan Nieder
22bc5014faSJonathan Niederjava_library(
230f6ddb37SDavid Ostrovsky    name = "commons-codec",
24af547cf0SDavid Pursehouse    exports = ["@commons-codec//jar"],
250f6ddb37SDavid Ostrovsky)
260f6ddb37SDavid Ostrovsky
270f6ddb37SDavid Ostrovskyjava_library(
280f6ddb37SDavid Ostrovsky    name = "commons-logging",
290f6ddb37SDavid Ostrovsky    testonly = 1,
300f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
31af547cf0SDavid Pursehouse    exports = ["@commons-logging//jar"],
320f6ddb37SDavid Ostrovsky)
330f6ddb37SDavid Ostrovsky
340f6ddb37SDavid Ostrovskyjava_library(
35bc5014faSJonathan Nieder    name = "gson",
3635bb7cccSHan-Wen Nienhuys    visibility = [
3735bb7cccSHan-Wen Nienhuys        "//org.eclipse.jgit.lfs:__pkg__",
3835bb7cccSHan-Wen Nienhuys        "//org.eclipse.jgit.lfs.server:__pkg__",
3935bb7cccSHan-Wen Nienhuys    ],
40bc5014faSJonathan Nieder    exports = ["@gson//jar"],
41bc5014faSJonathan Nieder)
42bc5014faSJonathan Nieder
43bc5014faSJonathan Niederjava_library(
44bc5014faSJonathan Nieder    name = "httpclient",
450f6ddb37SDavid Ostrovsky    visibility = [
460f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.apache:__pkg__",
470f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
480f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
490f6ddb37SDavid Ostrovsky    ],
50bc5014faSJonathan Nieder    exports = ["@httpclient//jar"],
51bc5014faSJonathan Nieder)
52bc5014faSJonathan Nieder
53bc5014faSJonathan Niederjava_library(
54bc5014faSJonathan Nieder    name = "httpcore",
55bc5014faSJonathan Nieder    visibility = [
56bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
57280707b0SGabriel Couto        "//org.eclipse.jgit.http.test:__pkg__",
58bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
590f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
600f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
61bc5014faSJonathan Nieder    ],
62bc5014faSJonathan Nieder    exports = ["@httpcore//jar"],
63bc5014faSJonathan Nieder)
64bc5014faSJonathan Nieder
65bc5014faSJonathan Niederjava_library(
66bc5014faSJonathan Nieder    name = "javaewah",
67bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
68bc5014faSJonathan Nieder    exports = ["@javaewah//jar"],
69bc5014faSJonathan Nieder)
70bc5014faSJonathan Nieder
71bc5014faSJonathan Niederjava_library(
720f6ddb37SDavid Ostrovsky    name = "jetty-http",
730f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
740f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
75af547cf0SDavid Pursehouse    exports = ["@jetty-http//jar"],
760f6ddb37SDavid Ostrovsky    runtime_deps = [":commons-codec"],
770f6ddb37SDavid Ostrovsky)
780f6ddb37SDavid Ostrovsky
790f6ddb37SDavid Ostrovskyjava_library(
800f6ddb37SDavid Ostrovsky    name = "jetty-io",
810f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
820f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
83af547cf0SDavid Pursehouse    exports = ["@jetty-io//jar"],
840f6ddb37SDavid Ostrovsky)
850f6ddb37SDavid Ostrovsky
860f6ddb37SDavid Ostrovskyjava_library(
870f6ddb37SDavid Ostrovsky    name = "jetty-security",
880f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
890f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
90af547cf0SDavid Pursehouse    exports = ["@jetty-security//jar"],
910f6ddb37SDavid Ostrovsky)
920f6ddb37SDavid Ostrovsky
930f6ddb37SDavid Ostrovskyjava_library(
940f6ddb37SDavid Ostrovsky    name = "jetty-server",
950f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
960f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
97af547cf0SDavid Pursehouse    exports = ["@jetty-server//jar"],
980f6ddb37SDavid Ostrovsky)
990f6ddb37SDavid Ostrovsky
1000f6ddb37SDavid Ostrovskyjava_library(
1010f6ddb37SDavid Ostrovsky    name = "jetty-servlet",
1020f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1030f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
104af547cf0SDavid Pursehouse    exports = ["@jetty-servlet//jar"],
1050f6ddb37SDavid Ostrovsky)
1060f6ddb37SDavid Ostrovsky
1070f6ddb37SDavid Ostrovskyjava_library(
1080f6ddb37SDavid Ostrovsky    name = "jetty-util",
1090f6ddb37SDavid Ostrovsky    # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
1100f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
111af547cf0SDavid Pursehouse    exports = ["@jetty-util//jar"],
1120f6ddb37SDavid Ostrovsky)
1130f6ddb37SDavid Ostrovsky
1140f6ddb37SDavid Ostrovskyjava_library(
115bc5014faSJonathan Nieder    name = "jsch",
116c506f8d2SThomas Wolf    visibility = [
117c506f8d2SThomas Wolf        "//org.eclipse.jgit:__pkg__",
118c506f8d2SThomas Wolf        "//org.eclipse.jgit.test:__pkg__",
119c506f8d2SThomas Wolf    ],
120bc5014faSJonathan Nieder    exports = ["@jsch//jar"],
121bc5014faSJonathan Nieder)
122bc5014faSJonathan Nieder
123bc5014faSJonathan Niederjava_library(
124cdc88247SMatthias Sohn    name = "jzlib",
125cdc88247SMatthias Sohn    visibility = [
126cdc88247SMatthias Sohn        "//org.eclipse.jgit:__pkg__",
127cdc88247SMatthias Sohn        "//org.eclipse.jgit.test:__pkg__",
128cdc88247SMatthias Sohn    ],
129cdc88247SMatthias Sohn    exports = ["@jzlib//jar"],
130cdc88247SMatthias Sohn)
131cdc88247SMatthias Sohn
132cdc88247SMatthias Sohnjava_library(
133bc5014faSJonathan Nieder    name = "junit",
13402fe1e0bSJonathan Nieder    testonly = 1,
13502fe1e0bSJonathan Nieder    visibility = ["//visibility:public"],
136fa2851ceSDavid Ostrovsky    exports = [
1374d46a68aSMatthias Sohn        "@bytebuddy//jar",
1384d46a68aSMatthias Sohn        "@bytebuddy-agent//jar",
139af547cf0SDavid Pursehouse        "@hamcrest-core//jar",
140af547cf0SDavid Pursehouse        "@hamcrest-library//jar",
141904e9f8bSDavid Pursehouse        "@junit//jar",
1424d46a68aSMatthias Sohn        "@mockito-core//jar",
1434d46a68aSMatthias Sohn        "@objenesis//jar"
1440f6ddb37SDavid Ostrovsky    ],
145bc5014faSJonathan Nieder)
146bc5014faSJonathan Nieder
147bc5014faSJonathan Niederjava_library(
148bc5014faSJonathan Nieder    name = "servlet-api",
149bc5014faSJonathan Nieder    visibility = [
150bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.apache:__pkg__",
151bc5014faSJonathan Nieder        "//org.eclipse.jgit.http.server:__pkg__",
1520f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.http.test:__pkg__",
1530f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.junit.http:__pkg__",
154bc5014faSJonathan Nieder        "//org.eclipse.jgit.lfs.server:__pkg__",
1550f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.lfs.server.test:__pkg__",
1560f6ddb37SDavid Ostrovsky        "//org.eclipse.jgit.pgm:__pkg__",
157bc5014faSJonathan Nieder    ],
158af547cf0SDavid Pursehouse    exports = ["@servlet-api-3_1//jar"],
159bc5014faSJonathan Nieder)
160bc5014faSJonathan Nieder
161bc5014faSJonathan Niederjava_library(
162bc5014faSJonathan Nieder    name = "slf4j-api",
163bc5014faSJonathan Nieder    visibility = ["//visibility:public"],
164af547cf0SDavid Pursehouse    exports = ["@log-api//jar"],
165bc5014faSJonathan Nieder)
1660f6ddb37SDavid Ostrovsky
1670f6ddb37SDavid Ostrovskyjava_library(
1680f6ddb37SDavid Ostrovsky    name = "slf4j-simple",
1690f6ddb37SDavid Ostrovsky    testonly = 1,
1700f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
171af547cf0SDavid Pursehouse    exports = ["@slf4j-simple//jar"],
1720f6ddb37SDavid Ostrovsky)
1730f6ddb37SDavid Ostrovsky
1740f6ddb37SDavid Ostrovskyjava_library(
1750f6ddb37SDavid Ostrovsky    name = "xz",
1760f6ddb37SDavid Ostrovsky    testonly = 1,
1770f6ddb37SDavid Ostrovsky    visibility = ["//visibility:public"],
178af547cf0SDavid Pursehouse    exports = ["@tukaani-xz//jar"],
1790f6ddb37SDavid Ostrovsky)
180