• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1java_library_host {
2    name: "desugar",
3    srcs: ["java/**/*.java"],
4    // Remove com.google.devtools.common.options.testing classes, they are
5    // extensions to the Truth library that we are missing dependencies for
6    // and don't need.
7    // Also remove com.google.devtools.common.options.InvocationPolicy*,
8    // which depend on protobuf and are not used in desugar.
9    exclude_srcs: [
10        "java/com/google/devtools/common/options/testing/**/*.java",
11        "java/com/google/devtools/common/options/InvocationPolicyEnforcer.java",
12        "java/com/google/devtools/common/options/InvocationPolicyParser.java",
13    ],
14
15    manifest: "manifest.txt",
16    static_libs: [
17        "asm-6.0",
18        "asm-commons-6.0",
19        "asm-tree-6.0",
20        "error_prone_annotations-2.0.18",
21        "guava-21.0",
22        "jsr305-3.0.1",
23    ],
24
25    openjdk9: {
26        // Required for use of javax.annotation.Generated per http://b/62050818
27        javacflags: ["-J--add-modules=java.xml.ws.annotation"],
28    },
29
30    // Use Dagger2 annotation processor
31    plugins: ["dagger2-auto-value"],
32    libs: ["dagger2-auto-value"],
33}
34