-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathBUILD
More file actions
106 lines (91 loc) · 2.89 KB
/
BUILD
File metadata and controls
106 lines (91 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright 2022 Google LLC
#
# 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
#
# https://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.
#
load("@rules_java//java:defs.bzl", "java_binary")
load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain", "kt_javac_options", "kt_kotlinc_options")
load("@rules_license//rules:license.bzl", "license")
package(default_applicable_licenses = [":license"])
license(
name = "license",
package_name = "deviceinfra",
)
licenses(["notice"])
exports_files(["LICENSE"])
package_group(
name = "deviceinfra_api_users",
includes = [
":deviceinfra_all_pkg",
],
)
package_group(
name = "deviceinfra_all_pkg",
includes = [
":deviceinfra_pkg",
],
)
package_group(
name = "deviceinfra_pkg",
packages = [
"//...",
],
)
package_group(
name = "deviceinfra_devicemanagement_pkg",
packages = [
"//src/java/com/google/devtools/mobileharness/api/devicemanager/...",
"//src/java/com/google/devtools/mobileharness/infra/client/api/mode/local/...",
"//src/java/com/google/devtools/mobileharness/infra/controller/device/...",
"//src/java/com/google/devtools/mobileharness/infra/lab/...",
"//src/javatests/com/google/devtools/mobileharness/api/devicemanager/...",
"//src/javatests/com/google/devtools/mobileharness/infra/client/api/mode/local/...",
"//src/javatests/com/google/devtools/mobileharness/infra/controller/device/...",
],
)
package_group(
name = "omnilab_fusion",
packages = [
"//src/java/com/google/devtools/omnilab/device/lab/server/...",
"//src/javatests/com/google/devtools/omnilab/device/lab/server/...",
],
)
package_group(
name = "omnilab_console",
packages = [
],
)
# A java_binary target to wrap the JarJar library.
# This is needed for Bazel because the Maven artifact does not have a main manifest attribute.
java_binary(
name = "jarjar_bin",
main_class = "org.pantsbuild.jarjar.Main",
visibility = ["//visibility:public"],
runtime_deps = ["@maven//:org_pantsbuild_jarjar"],
)
kt_kotlinc_options(
name = "kt_kotlinc_options",
jvm_target = "17",
x_jdk_release = "17",
)
kt_javac_options(
name = "kt_javac_options",
release = "17",
)
define_kt_toolchain(
name = "kotlin_toolchain",
api_version = "1.9",
javac_options = "//:kt_javac_options",
jvm_target = "17",
kotlinc_options = "//:kt_kotlinc_options",
language_version = "1.9",
)