Currently Soong based Android stubs jar generation is broken when EXPERIMENTAL_USE_OPENJDK9=true with following errors: "Unable to find package java.lang in classpath or bootclasspath" In old development/build/build_android_stubs.mk all these jar targets were forced to be built with -source 1.8 -target 1.8 https://android-review.googlesource.com/c/platform/development/+/630280 Test: m android_stubs_current EXPERIMENTAL_USE_OPENJDK9=true Bug: b/70351683 Change-Id: Ice0224a97e458f92e5b4c5994fa67079d2788d57
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
// Copyright (C) 2018 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.
|
|
|
|
java_defaults {
|
|
name: "framework-stubs-default",
|
|
errorprone: {
|
|
javacflags: [
|
|
"-XepDisableAllChecks",
|
|
],
|
|
},
|
|
java_resources: [
|
|
":notices-for-framework-stubs",
|
|
],
|
|
no_standard_libs: true,
|
|
system_modules: "none",
|
|
java_version: "1.8",
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android_stubs_current",
|
|
srcs: [
|
|
":api-stubs-docs",
|
|
],
|
|
defaults: ["framework-stubs-default"],
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android_system_stubs_current",
|
|
srcs: [
|
|
":system-api-stubs-docs",
|
|
],
|
|
defaults: ["framework-stubs-default"],
|
|
}
|
|
|
|
java_library_static {
|
|
name: "android_test_stubs_current",
|
|
srcs: [
|
|
":test-api-stubs-docs",
|
|
],
|
|
defaults: ["framework-stubs-default"],
|
|
}
|