@@ -26,6 +26,13 @@ These are often parent or imported POM files referenced by a Java library's POM
26
26
<AndroidAdditionalJavaManifest Include =" mylib-parent.pom" JavaArtifact =" com.example.mylib-parent" JavaVersion =" 1.0.0" />
27
27
</ItemGroup >
28
28
```
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
+
29
36
See the [ Java Dependency Resolution documentation] ( ../JavaDependencyVerification.md )
30
37
for more details.
31
38
@@ -115,6 +122,11 @@ cannot detect.
115
122
<AndroidIgnoredJavaDependency Include =" com.google.errorprone:error_prone_annotations" Version =" 2.15.0" />
116
123
</ItemGroup >
117
124
```
125
+
126
+ The following MSBuild metadata are required:
127
+
128
+ - ` %(Version) ` : The version of the Java library matching the specified ` %(Include) ` .
129
+
118
130
See the [ Java Dependency Resolution documentation] ( ../JavaDependencyVerification.md )
119
131
for more details.
120
132
@@ -223,6 +235,17 @@ hosted in Maven.
223
235
<AndroidMavenLibrary Include =" com.squareup.okhttp3:okhttp" Version =" 4.9.3" />
224
236
</ItemGroup >
225
237
```
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
+
226
249
See the [ AndroidMavenLibrary documentation] ( ../AndroidMavenLibrary.md )
227
250
for more details.
228
251
0 commit comments