@@ -26,6 +26,13 @@ These are often parent or imported POM files referenced by a Java library's POM
2626 <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
@@ -115,6 +122,11 @@ cannot detect.
115122 <AndroidIgnoredJavaDependency Include =" com.google.errorprone:error_prone_annotations" Version =" 2.15.0" />
116123</ItemGroup >
117124```
125+
126+ The following MSBuild metadata are required:
127+
128+ - ` %(Version) ` : The version of the Java library matching the specified ` %(Include) ` .
129+
118130See the [ Java Dependency Resolution documentation] ( ../JavaDependencyVerification.md )
119131for more details.
120132
@@ -223,6 +235,17 @@ hosted in Maven.
223235 <AndroidMavenLibrary Include =" com.squareup.okhttp3:okhttp" Version =" 4.9.3" />
224236</ItemGroup >
225237```
238+
239+ The following MSBuild metadata are supported:
240+
241+ - ` %(Version) ` : Required version of the Java library referenced by ` %(Include) ` .
242+ - ` %(Repository) ` : Optional Maven repository to use. Supported values are ` Central ` (default),
243+ ` Google ` , or an ` https ` URL to a Maven repository.
244+
245+ The ` <AndroidMavenLibrary> ` item is translated to an
246+ [ ` <AndroidLibrary> ` ] ( https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/building-apps/build-items.md#androidlibrary )
247+ item, so any metadata supported by ` <AndroidLibrary> ` like ` Bind ` or ` Pack ` are also supported.
248+
226249See the [ AndroidMavenLibrary documentation] ( ../AndroidMavenLibrary.md )
227250for more details.
228251
0 commit comments