1// Copyright (C) 2018 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 16java_library { 17 name: "grpc-java-api", 18 host_supported: true, 19 srcs: [ 20 "src/main/java/**/*.java", 21 ], 22 libs: [ 23 "error_prone_annotations", 24 "grpc-java-context", 25 "guava", 26 "jsr305", 27 ], 28 sdk_version: "current", 29 min_sdk_version: "30", 30 // b/267831518: Pin tradefed and dependencies to Java 11. 31 java_version: "11", 32 apex_available: [ 33 "//apex_available:platform", 34 "com.android.adservices", 35 "com.android.devicelock", 36 "com.android.extservices", 37 "com.android.virt", 38 ], 39 target: { 40 windows: { 41 enabled: true, 42 }, 43 }, 44} 45