Make :module provide the output file for java modules
Make :module on a java_library provide the output file, which is
normally the implementation jar. For java_library modules with
installable: true or compile_dex: true this will be the dexjar
instead. For android_app modules this will be the apk.
Bug: 80144045
Test: no change to out/soong/build.ninja
Change-Id: I739674aee60a38bfccb859369e4414b46f293d82
diff --git a/java/builder.go b/java/builder.go
index 55be3a6..4bdea28 100644
--- a/java/builder.go
+++ b/java/builder.go
@@ -125,6 +125,7 @@
)
func init() {
+ pctx.Import("android/soong/common")
pctx.Import("android/soong/java/config")
}