You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
888 B
39 lines
888 B
package(default_visibility = ["//visibility:public"]) |
|
|
|
INSECURE_CIPHER_FACTORY = [ |
|
"src/org/eclipse/jgit/transport/InsecureCipherFactory.java", |
|
] |
|
|
|
SRCS = glob( |
|
["src/**/*.java"], |
|
exclude = INSECURE_CIPHER_FACTORY, |
|
) |
|
|
|
RESOURCES = glob(["resources/**"]) |
|
|
|
java_library( |
|
name = "jgit", |
|
srcs = SRCS, |
|
javacopts = select({ |
|
"//:jdk9": ["--add-modules=java.xml.bind"], |
|
"//conditions:default": [], |
|
}), |
|
resource_strip_prefix = "org.eclipse.jgit/resources", |
|
resources = RESOURCES, |
|
deps = [ |
|
":insecure_cipher_factory", |
|
"//lib:bcpg", |
|
"//lib:bcpkix", |
|
"//lib:bcprov", |
|
"//lib:javaewah", |
|
"//lib:jsch", |
|
"//lib:jzlib", |
|
"//lib:slf4j-api", |
|
], |
|
) |
|
|
|
java_library( |
|
name = "insecure_cipher_factory", |
|
srcs = INSECURE_CIPHER_FACTORY, |
|
javacopts = ["-Xep:InsecureCryptoUsage:OFF"], |
|
)
|
|
|