xref: /JGit/org.eclipse.jgit/BUILD (revision dd5e500a57fce994331dd9c9a03cb9577998a4a8)
1*dd5e500aSDavid Pursehousepackage(default_visibility = ["//visibility:public"])
2e92a0c3aSDavid Ostrovsky
3e92a0c3aSDavid OstrovskyINSECURE_CIPHER_FACTORY = [
4*dd5e500aSDavid Pursehouse    "src/org/eclipse/jgit/transport/InsecureCipherFactory.java",
5e92a0c3aSDavid Ostrovsky]
6e92a0c3aSDavid Ostrovsky
7*dd5e500aSDavid PursehouseSRCS = glob(
8*dd5e500aSDavid Pursehouse    ["src/**"],
9*dd5e500aSDavid Pursehouse    exclude = INSECURE_CIPHER_FACTORY,
10*dd5e500aSDavid Pursehouse)
11*dd5e500aSDavid Pursehouse
12*dd5e500aSDavid PursehouseRESOURCES = glob(["resources/**"])
13e92a0c3aSDavid Ostrovsky
14e92a0c3aSDavid Ostrovskyjava_library(
15*dd5e500aSDavid Pursehouse    name = "jgit",
16e92a0c3aSDavid Ostrovsky    srcs = SRCS,
17*dd5e500aSDavid Pursehouse    resource_strip_prefix = "org.eclipse.jgit/resources",
18e92a0c3aSDavid Ostrovsky    resources = RESOURCES,
19e92a0c3aSDavid Ostrovsky    deps = [
20*dd5e500aSDavid Pursehouse        ":insecure_cipher_factory",
21*dd5e500aSDavid Pursehouse        "@httpclient//jar",
22*dd5e500aSDavid Pursehouse        "@javaewah//jar",
23*dd5e500aSDavid Pursehouse        "@jsch//jar",
24*dd5e500aSDavid Pursehouse        "@log_api//jar",
25*dd5e500aSDavid Pursehouse        "@servlet_api_3_1//jar",
26e92a0c3aSDavid Ostrovsky    ],
27e92a0c3aSDavid Ostrovsky)
28e92a0c3aSDavid Ostrovsky
29e92a0c3aSDavid Ostrovskyjava_library(
30*dd5e500aSDavid Pursehouse    name = "insecure_cipher_factory",
31e92a0c3aSDavid Ostrovsky    srcs = INSECURE_CIPHER_FACTORY,
32*dd5e500aSDavid Pursehouse    javacopts = ["-Xep:InsecureCipherMode:OFF"],
33e92a0c3aSDavid Ostrovsky)
34