1*10816b52SSorin Bascapackage { 2*10816b52SSorin Basca default_applicable_licenses: ["external_google-java-format_license"], 3*10816b52SSorin Basca} 4*10816b52SSorin Basca 5*10816b52SSorin Basca// Added automatically by a large-scale-change that took the approach of 6*10816b52SSorin Basca// 'apply every license found to every target'. While this makes sure we respect 7*10816b52SSorin Basca// every license restriction, it may not be entirely correct. 8*10816b52SSorin Basca// 9*10816b52SSorin Basca// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10*10816b52SSorin Basca// 11*10816b52SSorin Basca// Please consider splitting the single license below into multiple licenses, 12*10816b52SSorin Basca// taking care not to lose any license_kind information, and overriding the 13*10816b52SSorin Basca// default license using the 'licenses: [...]' property on targets as needed. 14*10816b52SSorin Basca// 15*10816b52SSorin Basca// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16*10816b52SSorin Basca// to attach the license to, and including a comment whether the files may be 17*10816b52SSorin Basca// used in the current project. 18*10816b52SSorin Basca// See: http://go/android-license-faq 19*10816b52SSorin Bascalicense { 20*10816b52SSorin Basca name: "external_google-java-format_license", 21*10816b52SSorin Basca visibility: [":__subpackages__"], 22*10816b52SSorin Basca license_kinds: [ 23*10816b52SSorin Basca "SPDX-license-identifier-Apache-2.0", 24*10816b52SSorin Basca "SPDX-license-identifier-BSD", 25*10816b52SSorin Basca "SPDX-license-identifier-MIT", 26*10816b52SSorin Basca "SPDX-license-identifier-NCSA", 27*10816b52SSorin Basca ], 28*10816b52SSorin Basca license_text: [ 29*10816b52SSorin Basca "LICENSE", 30*10816b52SSorin Basca ], 31*10816b52SSorin Basca} 32*10816b52SSorin Basca 33*10816b52SSorin Bascajava_library_host { 34*10816b52SSorin Basca name: "google_java_format_android_annotation_stubs", 35*10816b52SSorin Basca srcs: ["android-annotation-stubs/src/**/*.java"], 36*10816b52SSorin Basca} 37*10816b52SSorin Basca 38*10816b52SSorin Bascafilegroup { 39*10816b52SSorin Basca name: "google_java_format_main_srcs", 40*10816b52SSorin Basca srcs: [ 41*10816b52SSorin Basca "core/src/main/java/com/google/googlejavaformat/java/Main.java", 42*10816b52SSorin Basca "core/src/main/java/com/google/googlejavaformat/java/GoogleJavaFormatTool.java", 43*10816b52SSorin Basca "core/src/main/java/com/google/googlejavaformat/java/UsageException.java", 44*10816b52SSorin Basca ], 45*10816b52SSorin Basca} 46*10816b52SSorin Basca 47*10816b52SSorin Bascajava_library_host { 48*10816b52SSorin Basca name: "google_java_format", 49*10816b52SSorin Basca srcs: ["core/src/main/java/**/*.java"], 50*10816b52SSorin Basca exclude_srcs: [ 51*10816b52SSorin Basca ":google_java_format_main_srcs", 52*10816b52SSorin Basca "core/src/main/java/com/google/googlejavaformat/java/GoogleJavaFormatToolProvider.java", 53*10816b52SSorin Basca ], 54*10816b52SSorin Basca libs: [ 55*10816b52SSorin Basca "error_prone_annotations", 56*10816b52SSorin Basca "google_java_format_android_annotation_stubs", 57*10816b52SSorin Basca "guava", 58*10816b52SSorin Basca "auto_service_annotations", 59*10816b52SSorin Basca "auto_value_annotations", 60*10816b52SSorin Basca ], 61*10816b52SSorin Basca plugins: [ 62*10816b52SSorin Basca "auto_oneof_plugin", 63*10816b52SSorin Basca "auto_service_plugin", 64*10816b52SSorin Basca "auto_value_plugin", 65*10816b52SSorin Basca ], 66*10816b52SSorin Basca javacflags: [ 67*10816b52SSorin Basca "--add-modules=jdk.compiler", 68*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", 69*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", 70*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", 71*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", 72*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED", 73*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", 74*10816b52SSorin Basca "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", 75*10816b52SSorin Basca ], 76*10816b52SSorin Basca} 77