Skip to content

Commit

Permalink
Address docs review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed Mar 19, 2024
1 parent 516fd07 commit 1313ab5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Documentation/guides/building-apps/build-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ These are often parent or imported POM files referenced by a Java library's POM
<AndroidAdditionalJavaManifest Include="mylib-parent.pom" JavaArtifact="com.example.mylib-parent" JavaVersion="1.0.0" />
</ItemGroup>
```

The following MSBuild metadata are required:

- `%(JavaArtifact)`: The group and artifact id of the Java library matching the specifed POM
file in the form `{GroupId}:{ArtifactId}`.
- `%(JavaVersion)`: The version of the Java library matching the specified POM file.

See the [Java Dependency Resolution documentation](../JavaDependencyVerification.md)
for more details.

Expand Down Expand Up @@ -115,6 +122,11 @@ cannot detect.
<AndroidIgnoredJavaDependency Include="com.google.errorprone:error_prone_annotations" Version="2.15.0" />
</ItemGroup>
```

The following MSBuild metadata are required:

- `%(Version)`: The version of the Java library matching the specified `%(Include)`.

See the [Java Dependency Resolution documentation](../JavaDependencyVerification.md)
for more details.

Expand Down Expand Up @@ -223,6 +235,17 @@ hosted in Maven.
<AndroidMavenLibrary Include="com.squareup.okhttp3:okhttp" Version="4.9.3" />
</ItemGroup>
```

The following MSBuild metadata are supported:

- `%(Version)`: Required version of the Java library referenced by `%(Include)`.
- `%(Repository)`: Optional Maven repository to use. Supported values are `Central` (default),
`Google`, or an `https` URL to a Maven repository.

The `<AndroidMavenLibrary>` item is translated to an
[`<AndroidLibrary>`](https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/building-apps/build-items.md#androidlibrary)
item, so any metadata supported by `<AndroidLibrary>` like `Bind` or `Pack` are also supported.

See the [AndroidMavenLibrary documentation](../AndroidMavenLibrary.md)
for more details.

Expand Down

0 comments on commit 1313ab5

Please sign in to comment.