Bob Badour | 1a0fa80 | 2021-02-12 20:49:59 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_desugar_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change |
| 6 | // See: http://go/android-license-faq |
| 7 | license { |
| 8 | name: "external_desugar_license", |
| 9 | visibility: [":__subpackages__"], |
| 10 | license_kinds: [ |
| 11 | "SPDX-license-identifier-Apache-2.0", |
| 12 | ], |
| 13 | license_text: [ |
| 14 | "NOTICE", |
| 15 | ], |
| 16 | } |
| 17 | |
Colin Cross | 8c363aa | 2017-09-13 14:56:14 +0000 | [diff] [blame] | 18 | java_library_host { |
| 19 | name: "desugar", |
| 20 | srcs: ["java/**/*.java"], |
| 21 | // Remove com.google.devtools.common.options.testing classes, they are |
| 22 | // extensions to the Truth library that we are missing dependencies for |
| 23 | // and don't need. |
| 24 | // Also remove com.google.devtools.common.options.InvocationPolicy*, |
| 25 | // which depend on protobuf and are not used in desugar. |
| 26 | exclude_srcs: [ |
| 27 | "java/com/google/devtools/common/options/testing/**/*.java", |
| 28 | "java/com/google/devtools/common/options/InvocationPolicyEnforcer.java", |
| 29 | "java/com/google/devtools/common/options/InvocationPolicyParser.java", |
| 30 | ], |
| 31 | |
| 32 | manifest: "manifest.txt", |
| 33 | static_libs: [ |
Krzysztof Kosiński | a6a6d9b | 2022-11-04 18:39:35 +0000 | [diff] [blame] | 34 | "error_prone_annotations", |
| 35 | "guava", |
| 36 | "jsr305", |
Krzysztof Kosiński | 72a2664 | 2022-11-16 19:03:18 +0000 | [diff] [blame] | 37 | "ow2-asm", |
| 38 | "ow2-asm-commons", |
| 39 | "ow2-asm-tree", |
Colin Cross | 8c363aa | 2017-09-13 14:56:14 +0000 | [diff] [blame] | 40 | ], |
| 41 | |
Colin Cross | 12b1f91 | 2020-06-19 13:14:40 -0700 | [diff] [blame] | 42 | plugins: ["auto_value_plugin"], |
| 43 | libs: ["auto_value_annotations"], |
Colin Cross | 8c363aa | 2017-09-13 14:56:14 +0000 | [diff] [blame] | 44 | } |