blob: b62e6150aa5ea3349cb9e0952804b44e2b07e986 [file] [log] [blame]
Colin Crosse826dfd2017-10-09 16:39:21 -07001// Copyright (C) 2009 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15//
16
Bob Badour349a9842021-02-12 15:19:26 -080017package {
18 default_applicable_licenses: ["external_junit_license"],
19}
20
21// Added automatically by a large-scale-change
22//
23// large-scale-change included anything that looked like it might be a license
24// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
25//
26// Please consider removing redundant or irrelevant files from 'license_text:'.
27// See: http://go/android-license-faq
28license {
29 name: "external_junit_license",
30 visibility: [":__subpackages__"],
31 license_kinds: [
32 "SPDX-license-identifier-EPL",
33 ],
34 license_text: [
35 "LICENSE-junit.txt",
36 "NOTICE.txt",
37 ],
38}
39
Colin Crosse826dfd2017-10-09 16:39:21 -070040java_library_static {
41 name: "junit",
42 host_supported: true,
43 hostdex: true,
44 srcs: ["src/main/java/**/*.java"],
Jiyong Parkcf747f12018-01-31 00:26:00 +090045 sdk_version: "core_current",
Colin Crosse826dfd2017-10-09 16:39:21 -070046 static_libs: ["hamcrest"],
Cole Faust03251e42021-11-22 13:47:48 -080047
48 errorprone: {
49 javacflags: ["-Xep:DoNotCall:OFF"]
50 }
Colin Crosse826dfd2017-10-09 16:39:21 -070051}
52
53// Legacy junit-host jar until references are updated
54java_library_host {
55 name: "junit-host",
56 static_libs: ["junit"],
57}