summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-15 19:46:04 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-06-15 19:46:04 +0000
commitab166607903951b3277c41ddab34acd1e6e33f67 (patch)
treef589b4cb2e922849f29e83b8b8dfba7b2c7680ba
parentf71502f3dd3887e3c8538ef7a910968a1d60ff01 (diff)
parent8dfcad81e5e17c38a3bb26919d065a2cb362200a (diff)
downloaddoclava-ab166607903951b3277c41ddab34acd1e6e33f67.tar.gz
Merge "Snap for 7460376 from 7b46b5a466cda32b8fbf0c5015c2b3d8127488c2 to androidx-g3-release" into androidx-g3-release
-rw-r--r--Android.bp35
-rw-r--r--build.gradle2
2 files changed, 36 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index d5ee50e..a3e2317 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,41 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_applicable_licenses: ["external_doclava_license"],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+// See: http://go/android-license-faq
+license {
+ name: "external_doclava_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-CC-BY",
+ "SPDX-license-identifier-GPL",
+ "SPDX-license-identifier-GPL-2.0",
+ "SPDX-license-identifier-LGPL",
+ "SPDX-license-identifier-MIT",
+ ],
+ license_text: [
+ "NOTICE",
+ ],
+}
+
droiddoc_exported_dir {
name: "droiddoc-templates-sdk",
path: "res/assets/templates-sdk",
diff --git a/build.gradle b/build.gradle
index 0a0ce4d..4f586df 100644
--- a/build.gradle
+++ b/build.gradle
@@ -47,7 +47,7 @@ dependencies {
toolsJar = System.env.JAVA_TOOLS_JAR
} else {
throw new Exception("If you are not using Java 8, JAVA_TOOLS_JAR env variable " +
- "needs to be set to build Doclava")
+ "needs to be set to tools.jar from a Java 8 installation to build Doclava")
}
implementation(files(toolsJar))