From 1aa7f26a22a0c6748f18956289b5031b85ca63e8 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 10 Apr 2019 11:07:15 -0700 Subject: [PATCH] pom2bp: add jar deps to -nodeps modules The dependency type in the pom file is not always accurate, just add all jar and aar dependencies to both the -nodeps and final module. Test: cd prebuilts/sdk/current/androidx && pom2bp -regen Android.bp && mma Change-Id: I1784b8ebf3485db19405cb353c9bb5fb3ae837d8 --- cmd/pom2bp/pom2bp.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/pom2bp/pom2bp.go b/cmd/pom2bp/pom2bp.go index a399b2834..c2ad94425 100644 --- a/cmd/pom2bp/pom2bp.go +++ b/cmd/pom2bp/pom2bp.go @@ -328,6 +328,9 @@ var bpTemplate = template.Must(template.New("bp").Parse(` {{- if .IsAar}} min_sdk_version: "{{.MinSdkVersion}}", static_libs: [ + {{- range .BpJarDeps}} + "{{.}}", + {{- end}} {{- range .BpAarDeps}} "{{.}}", {{- end}} @@ -349,7 +352,7 @@ var bpTemplate = template.Must(template.New("bp").Parse(` {{- end}} static_libs: [ "{{.BpName}}-nodeps", - {{- range .BpJarDeps}} + {{- range .BpJarDeps}} "{{.}}", {{- end}} {{- range .BpAarDeps}}