Improve documentation per Issue #309

This commit is contained in:
jamesagnew 2016-03-02 22:44:09 -05:00
parent 0ea8457a00
commit eba3ca8e59
1 changed files with 14 additions and 11 deletions

View File

@ -32,21 +32,24 @@
</p> </p>
<subsection name="Get the Android JAR"> <subsection name="Get the Android JAR">
<p>
To use the Android JAR from Maven, add the following dependency:
</p>
<source><![CDATA[<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-android</artifactId>
<version>${project.version}</version>
<classifier>dstu2</classifier>
</dependency>]]></source>
<p> <p>
Gradle users can use the following: To add the HAPI library via Gradle, use the following
dependency. Note the following things:
</p> </p>
<ul>
<li>The classifier should be set to the version of FHIR you want to support.</li>
<li>
You need to excluded a few things in order to get this to work. This is
a quirk because the way HAPI is built and will hopefully be resolved in a future
release.
</li>
</ul>
<source><![CDATA[dependencies { <source><![CDATA[dependencies {
compile group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-android', version: '${project.version}', classifier: 'dstu2' compile (group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-android', version: '${project.version}', classifier: 'dstu2') {
exclude module: 'javax.servlet-api'
exclude module: 'hapi-fhir-base'
}
}]]></source> }]]></source>
<p> <p>