Do not convert java libraries with core_platform

Test: go bp2build tests
Change-Id: I2769c0d589c304caeb24a8ecba38a4a5ee6c63e5
This commit is contained in:
Liz Kammer
2023-09-07 15:59:42 -04:00
parent 7d885d53a6
commit 65942c8467
2 changed files with 16 additions and 0 deletions

View File

@@ -1046,3 +1046,14 @@ filegroup {
ctx.RegisterModuleType("filegroup", android.FileGroupFactory)
})
}
func TestJavaSdkVersionCorePlatformDoesNotConvert(t *testing.T) {
runJavaLibraryTestCase(t, Bp2buildTestCase{
Blueprint: `java_library {
name: "java-lib-1",
sdk_version: "core_platform",
bazel_module: { bp2build_available: true },
}`,
ExpectedBazelTargets: []string{},
})
}