Add sdk_version to test libraries
If sdk_version is empty, by default the library will be built against the implementation of the framework jars. There are on going project to automatically repackaging flag libraries in the libray which is built direactly against the implementation of the framework jars. This change set the right sdk_version for the testing library. Bug: 310504781 Test: atest jarjar-rules-generator-test and CI Change-Id: I24d8dc47f7ed83f0b84c632d24396e2bdf932424
This commit is contained in:
parent
4c0b2f6c63
commit
e521ae306a
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ java_library {
|
|||
name: "jarjar-rules-generator-testjavalib",
|
||||
srcs: ["testdata/java/**/*.java"],
|
||||
libs: ["unsupportedappusage"],
|
||||
sdk_version: "core_platform",
|
||||
visibility: ["//visibility:private"],
|
||||
}
|
||||
|
||||
|
|
@ -56,6 +57,7 @@ java_library {
|
|||
static_libs: [
|
||||
"framework-connectivity.stubs.module_lib",
|
||||
],
|
||||
sdk_version: "module_current",
|
||||
// Not strictly necessary but specified as this MUST not have generate
|
||||
// a dex jar as that will break the tests.
|
||||
compile_dex: false,
|
||||
|
|
@ -67,6 +69,7 @@ java_library {
|
|||
static_libs: [
|
||||
"framework-connectivity-t.stubs.module_lib",
|
||||
],
|
||||
sdk_version: "module_current",
|
||||
// Not strictly necessary but specified as this MUST not have generate
|
||||
// a dex jar as that will break the tests.
|
||||
compile_dex: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue