1package { 2 default_applicable_licenses: ["external_desugar_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 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 18java_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: [ 34 "error_prone_annotations", 35 "guava", 36 "jsr305", 37 "ow2-asm", 38 "ow2-asm-commons", 39 "ow2-asm-tree", 40 ], 41 42 plugins: ["auto_value_plugin"], 43 libs: ["auto_value_annotations"], 44} 45