summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2023-09-20 13:39:57 +0000
committer Anton Hansson <hansson@google.com> 2023-09-28 13:20:49 +0000
commit0e73f9ee6db05504a5a586b931645a3da51ed9a8 (patch)
treed2be00c5b19f5e69f914b05d136fe706a26e7de8 /java/java.go
parent2863e4535eb65e15f955dc8ed48fa99b1d2a1db5 (diff)
Collect transitive source files for java modules
This new entry in the JavaInfoProvider lists all the transitive source files contained within the library. That is, the source files of the module and all its static dependencies. Bug: 151360309 Test: unit test in java_go + some manual testing Change-Id: I7fe3035b9e46774095c0e9196cd77fa1027adf6d
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index bf692be24..cac49a2c5 100644
--- a/java/java.go
+++ b/java/java.go
@@ -278,6 +278,9 @@ type JavaInfo struct {
// SrcJarDeps is a list of paths to depend on when packaging the sources of this module.
SrcJarDeps android.Paths
+ // The source files of this module and all its transitive static dependencies.
+ TransitiveSrcFiles *android.DepSet[android.Path]
+
// ExportedPlugins is a list of paths that should be used as annotation processors for any
// module that depends on this module.
ExportedPlugins android.Paths