diff options
author | Krzysztof KosiĆski <krzysio@google.com> | 2022-10-26 19:48:51 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-10-26 19:48:51 +0000 |
commit | 6627e2b91708bf46b37fb9442ce61142cf25b0da (patch) | |
tree | 805108d3b608a280022758f30d2b3bcaa2995769 | |
parent | af8ceb19edd6d9c1e20213e04e6c51a7664b89aa (diff) | |
parent | aee0c33401e0ab11dae0391b3bd4c5f9fa464b7f (diff) | |
download | truth-6627e2b91708bf46b37fb9442ce61142cf25b0da.tar.gz |
Add build file for Truth. am: ee593919af am: 03c30ee5e0 am: aee0c33401
Original change: https://android-review.googlesource.com/c/platform/external/truth/+/2269908
Change-Id: I2f03a657c7c3f0487bb7a5b3ca3aed754e51813c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 00000000..bd1400c3 --- /dev/null +++ b/Android.bp @@ -0,0 +1,63 @@ +// Copyright (C) 2022 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package { + default_applicable_licenses: ["external_truth_license"], +} + +license { + name: "external_truth_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "LICENSE", + ], +} + +java_library { + name: "truth", + host_supported: true, + srcs: ["core/src/main/java/com/google/common/truth/*.java"], + libs: [ + "auto_value_annotations", + "error_prone_annotations", + "guava-android-annotation-stubs", + "junit", + ], + static_libs: [ + "guava", + "asm-9.2", + ], + plugins: ["auto_value_plugin"], + sdk_version: "current", +} + +java_library { + name: "truth-java8-extension", + host_supported: true, + srcs: ["extensions/java8/src/main/java/**/*.java"], + libs: [ + "auto_value_annotations", + "error_prone_annotations", + "guava-android-annotation-stubs", + "truth", + ], + static_libs: [ + "guava", + ], + java_version: "1.8", + sdk_version: "current", +} |