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