1*85cea8c5SDavid Pursehouseload("@rules_java//java:defs.bzl", "java_library") 2*85cea8c5SDavid Pursehouse 3dd5e500aSDavid Pursehousepackage(default_visibility = ["//visibility:public"]) 4e92a0c3aSDavid Ostrovsky 5e92a0c3aSDavid OstrovskyINSECURE_CIPHER_FACTORY = [ 6dd5e500aSDavid Pursehouse "src/org/eclipse/jgit/transport/InsecureCipherFactory.java", 7e92a0c3aSDavid Ostrovsky] 8e92a0c3aSDavid Ostrovsky 9dd5e500aSDavid PursehouseSRCS = glob( 10c80d8c59SDavid Pursehouse ["src/**/*.java"], 11dd5e500aSDavid Pursehouse exclude = INSECURE_CIPHER_FACTORY, 12dd5e500aSDavid Pursehouse) 13dd5e500aSDavid Pursehouse 14dd5e500aSDavid PursehouseRESOURCES = glob(["resources/**"]) 15e92a0c3aSDavid Ostrovsky 16e92a0c3aSDavid Ostrovskyjava_library( 17dd5e500aSDavid Pursehouse name = "jgit", 18e92a0c3aSDavid Ostrovsky srcs = SRCS, 19ab1b9723SDavid Ostrovsky javacopts = select({ 20ab1b9723SDavid Ostrovsky "//:jdk9": ["--add-modules=java.xml.bind"], 21ab1b9723SDavid Ostrovsky "//conditions:default": [], 22ab1b9723SDavid Ostrovsky }), 23dd5e500aSDavid Pursehouse resource_strip_prefix = "org.eclipse.jgit/resources", 24e92a0c3aSDavid Ostrovsky resources = RESOURCES, 25e92a0c3aSDavid Ostrovsky deps = [ 26dd5e500aSDavid Pursehouse ":insecure_cipher_factory", 27bc5014faSJonathan Nieder "//lib:javaewah", 28bc5014faSJonathan Nieder "//lib:jsch", 29cdc88247SMatthias Sohn "//lib:jzlib", 30bc5014faSJonathan Nieder "//lib:slf4j-api", 31e92a0c3aSDavid Ostrovsky ], 32e92a0c3aSDavid Ostrovsky) 33e92a0c3aSDavid Ostrovsky 34e92a0c3aSDavid Ostrovskyjava_library( 35dd5e500aSDavid Pursehouse name = "insecure_cipher_factory", 36e92a0c3aSDavid Ostrovsky srcs = INSECURE_CIPHER_FACTORY, 37b537e372SJonathan Nieder javacopts = ["-Xep:InsecureCryptoUsage:OFF"], 38e92a0c3aSDavid Ostrovsky) 39