@@ -23,9 +23,16 @@ These are often parent or imported POM files referenced by a Java library's POM
2323
2424``` xml
2525<ItemGroup >
26- <AndroidAdditionalJavaManifest Include =" mylib-parent.pom" JavaArtifact =" com.example. mylib-parent" JavaVersion =" 1.0.0" />
26+ <AndroidAdditionalJavaManifest Include =" mylib-parent.pom" JavaArtifact =" com.example: mylib-parent" JavaVersion =" 1.0.0" />
2727</ItemGroup >
2828```
29+
30+ The following MSBuild metadata are required:
31+
32+ - ` %(JavaArtifact) ` : The group and artifact id of the Java library matching the specifed POM
33+ file in the form ` {GroupId}:{ArtifactId} ` .
34+ - ` %(JavaVersion) ` : The version of the Java library matching the specified POM file.
35+
2936See the [ Java Dependency Resolution documentation] ( ../JavaDependencyVerification.md )
3037for more details.
3138
@@ -146,6 +153,11 @@ cannot detect.
146153 <AndroidIgnoredJavaDependency Include =" com.google.errorprone:error_prone_annotations" Version =" 2.15.0" />
147154</ItemGroup >
148155```
156+
157+ The following MSBuild metadata are required:
158+
159+ - ` %(Version) ` : The version of the Java library matching the specified ` %(Include) ` .
160+
149161See the [ Java Dependency Resolution documentation] ( ../JavaDependencyVerification.md )
150162for more details.
151163
@@ -254,6 +266,17 @@ hosted in Maven.
254266 <AndroidMavenLibrary Include =" com.squareup.okhttp3:okhttp" Version =" 4.9.3" />
255267</ItemGroup >
256268```
269+
270+ The following MSBuild metadata are supported:
271+
272+ - ` %(Version) ` : Required version of the Java library referenced by ` %(Include) ` .
273+ - ` %(Repository) ` : Optional Maven repository to use. Supported values are ` Central ` (default),
274+ ` Google ` , or an ` https ` URL to a Maven repository.
275+
276+ The ` <AndroidMavenLibrary> ` item is translated to an
277+ [ ` <AndroidLibrary> ` ] ( https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/building-apps/build-items.md#androidlibrary )
278+ item, so any metadata supported by ` <AndroidLibrary> ` like ` Bind ` or ` Pack ` are also supported.
279+
257280See the [ AndroidMavenLibrary documentation] ( ../AndroidMavenLibrary.md )
258281for more details.
259282
0 commit comments