1*85cea8c5SDavid Pursehouseload("@rules_java//java:defs.bzl", "java_binary", "java_import", "java_library") 2*85cea8c5SDavid Pursehouse 30f6ddb37SDavid Ostrovskyjava_library( 40f6ddb37SDavid Ostrovsky name = "pgm", 5c80d8c59SDavid Pursehouse srcs = glob(["src/**/*.java"]), 60f6ddb37SDavid Ostrovsky resource_strip_prefix = "org.eclipse.jgit.pgm/resources", 70f6ddb37SDavid Ostrovsky resources = glob(["resources/**"]), 80f6ddb37SDavid Ostrovsky visibility = ["//visibility:public"], 90f6ddb37SDavid Ostrovsky deps = [ 100f6ddb37SDavid Ostrovsky ":services", 110f6ddb37SDavid Ostrovsky "//lib:args4j", 120f6ddb37SDavid Ostrovsky "//lib:httpclient", 130f6ddb37SDavid Ostrovsky "//lib:httpcore", 140f6ddb37SDavid Ostrovsky "//lib:jetty-http", 150f6ddb37SDavid Ostrovsky "//lib:jetty-io", 160f6ddb37SDavid Ostrovsky "//lib:jetty-security", 170f6ddb37SDavid Ostrovsky "//lib:jetty-server", 180f6ddb37SDavid Ostrovsky "//lib:jetty-servlet", 190f6ddb37SDavid Ostrovsky "//lib:jetty-util", 200f6ddb37SDavid Ostrovsky "//lib:servlet-api", 210f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.archive:jgit-archive", 220f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.http.apache:http-apache", 230f6ddb37SDavid Ostrovsky "//org.eclipse.jgit:jgit", 240f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.lfs:jgit-lfs", 250f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.lfs.server:jgit-lfs-server", 260f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.ui:ui", 270f6ddb37SDavid Ostrovsky ], 280f6ddb37SDavid Ostrovsky) 290f6ddb37SDavid Ostrovsky 30cdc5ec82SJonathan Niederjava_binary( 31cdc5ec82SJonathan Nieder name = "jgit", 32cdc5ec82SJonathan Nieder main_class = "org.eclipse.jgit.pgm.Main", 330718d22cSDavid Pursehouse runtime_deps = [":pgm"], 34cdc5ec82SJonathan Nieder) 35cdc5ec82SJonathan Nieder 360f6ddb37SDavid Ostrovskyjava_import( 370f6ddb37SDavid Ostrovsky name = "services", 380f6ddb37SDavid Ostrovsky jars = [":services_jar"], 390f6ddb37SDavid Ostrovsky) 400f6ddb37SDavid Ostrovsky 410f6ddb37SDavid Ostrovskygenrule( 420f6ddb37SDavid Ostrovsky name = "services_jar", 430f6ddb37SDavid Ostrovsky srcs = glob(["META-INF/services/*"]), 440f6ddb37SDavid Ostrovsky outs = ["services_jar.jar"], 450f6ddb37SDavid Ostrovsky cmd = "r=$$PWD && cd org.eclipse.jgit.pgm && zip -qr $$r/$@ .", 460f6ddb37SDavid Ostrovsky) 47