aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/BUILD
blob: a267b155ac97c0c56bcab3c808389d5436038a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
load("@rules_java//java:defs.bzl", "java_binary", "java_import", "java_library")

java_library(
    name = "pgm",
    srcs = glob(["src/**/*.java"]),
    resource_strip_prefix = "org.eclipse.jgit.pgm/resources",
    resources = glob(["resources/**"]),
    visibility = ["//visibility:public"],
    runtime_deps = [
        ":services",
        "//lib:javaewah",
        "//org.eclipse.jgit.gpg.bc:gpg-bc",
    ],
    deps = [
        "//lib:args4j",
        "//lib:commons-logging",
        "//lib:httpclient",
        "//lib:httpcore",
        "//lib:jetty-http",
        "//lib:jetty-io",
        "//lib:jetty-security",
        "//lib:jetty-server",
        "//lib:jetty-servlet",
        "//lib:jetty-util",
        "//lib:servlet-api",
        "//org.eclipse.jgit.archive:jgit-archive",
        "//org.eclipse.jgit.http.apache:http-apache",
        "//org.eclipse.jgit:jgit",
        "//org.eclipse.jgit.lfs:jgit-lfs",
        "//org.eclipse.jgit.lfs.server:jgit-lfs-server",
        "//org.eclipse.jgit.ssh.apache:ssh-apache",
        "//org.eclipse.jgit.ssh.jsch:ssh-jsch",
        "//org.eclipse.jgit.ui:ui",
    ],
)

java_binary(
    name = "jgit",
    main_class = "org.eclipse.jgit.pgm.Main",
    runtime_deps = [":pgm"],
)

java_import(
    name = "services",
    jars = [":services_jar"],
)

genrule(
    name = "services_jar",
    srcs = glob(["META-INF/services/*"]),
    outs = ["services_jar.jar"],
    cmd = "r=$$PWD && cd org.eclipse.jgit.pgm && zip -qr $$r/$@ .",
)