summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Sam Delmerico <delmerico@google.com> 2022-03-18 14:11:07 +0000
committer Sam Delmerico <delmerico@google.com> 2022-03-30 19:19:13 +0000
commit77267c7d9c998ebe8b651bfd0e82edbca21d16eb (patch)
tree766cc947fb33521115e152dd37ec840dec6bfbf4 /java/java.go
parent5f83b491b4b14bf17b9dd7fbc3ec9d0b061190de (diff)
add plugins to javaLibraryAttributes
Test: go test ./bp2build Change-Id: I8e4c3f373c62c60ea5013cd8c585915a366c1f81
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 831d60731..1b6e559b3 100644
--- a/java/java.go
+++ b/java/java.go
@@ -2026,6 +2026,7 @@ func addCLCFromDep(ctx android.ModuleContext, depModule android.Module,
type javaCommonAttributes struct {
Srcs bazel.LabelListAttribute
+ Plugins bazel.LabelListAttribute
Javacopts bazel.StringListAttribute
}
@@ -2061,6 +2062,9 @@ func (m *Library) convertLibraryAttrsBp2Build(ctx android.TopDownMutatorContext)
commonAttrs := &javaCommonAttributes{
Srcs: srcPartitions[javaSrcPartition],
+ Plugins: bazel.MakeLabelListAttribute(
+ android.BazelLabelForModuleDeps(ctx, m.properties.Plugins),
+ ),
}
if m.properties.Javacflags != nil {