2015-02-11 08:52:46 -05:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
|
|
<artifactId>hapi-fhir</artifactId>
|
2016-12-20 19:01:31 -05:00
|
|
|
<version>2.3-SNAPSHOT</version>
|
2015-02-11 08:52:46 -05:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>hapi-fhir-android</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
2015-02-16 23:02:50 -05:00
|
|
|
<name>HAPI FHIR - Android</name>
|
2015-02-11 08:52:46 -05:00
|
|
|
|
|
|
|
<dependencies>
|
2016-01-06 14:02:20 -05:00
|
|
|
|
|
|
|
<!--
|
|
|
|
This is here, at the top, for the unit tests because otherwise the
|
|
|
|
logger spews out all kinds of junk during unit tests
|
|
|
|
-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2015-02-11 08:52:46 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
|
|
<artifactId>hapi-fhir-base</artifactId>
|
2016-12-20 19:01:31 -05:00
|
|
|
<version>2.3-SNAPSHOT</version>
|
2015-02-11 08:52:46 -05:00
|
|
|
<exclusions>
|
2015-03-03 18:31:01 -05:00
|
|
|
<exclusion>
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
</exclusion>
|
2015-02-11 08:52:46 -05:00
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
|
|
<artifactId>hapi-fhir-structures-dstu</artifactId>
|
2016-12-20 19:01:31 -05:00
|
|
|
<version>2.3-SNAPSHOT</version>
|
2015-08-19 11:49:00 -04:00
|
|
|
<optional>true</optional>
|
2015-02-11 08:52:46 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
|
|
<artifactId>hapi-fhir-structures-dstu2</artifactId>
|
2016-12-20 19:01:31 -05:00
|
|
|
<version>2.3-SNAPSHOT</version>
|
2015-08-19 11:49:00 -04:00
|
|
|
<optional>true</optional>
|
2015-02-11 08:52:46 -05:00
|
|
|
</dependency>
|
2016-02-03 08:35:05 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
|
|
<artifactId>hapi-fhir-structures-dstu3</artifactId>
|
2016-12-20 19:01:31 -05:00
|
|
|
<version>2.3-SNAPSHOT</version>
|
2016-02-03 08:35:05 -05:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2016-10-14 16:15:27 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
|
|
<artifactId>hapi-fhir-client-okhttp</artifactId>
|
2016-12-20 19:01:31 -05:00
|
|
|
<version>2.3-SNAPSHOT</version>
|
2016-10-14 16:15:27 -04:00
|
|
|
</dependency>
|
2016-10-14 17:34:55 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-10-14 16:15:27 -04:00
|
|
|
|
2016-09-16 23:46:06 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.woodstox</groupId>
|
|
|
|
<artifactId>woodstox-core-asl</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2015-02-11 08:52:46 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-android</artifactId>
|
|
|
|
</dependency>
|
2015-04-20 17:32:20 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
</dependency>
|
2015-02-16 14:17:29 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
</dependency>
|
2015-08-09 11:18:04 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
</dependency>
|
2015-02-11 08:52:46 -05:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<configuration>
|
2015-03-16 09:04:27 -04:00
|
|
|
<skip>false</skip>
|
2015-02-11 08:52:46 -05:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2015-02-16 14:17:29 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2016-09-16 23:46:06 -04:00
|
|
|
<id>dstu2_shade</id>
|
2015-02-16 14:17:29 -05:00
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
2016-09-16 23:46:06 -04:00
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Dstu2ShadeIT.java</include>
|
|
|
|
</includes>
|
|
|
|
<additionalClasspathElements>
|
|
|
|
<additionalClasspathElement>${basedir}/target/hapi-fhir-android-${project.version}-dstu2.jar</additionalClasspathElement>
|
|
|
|
</additionalClasspathElements>
|
|
|
|
<classpathDependencyExcludes>
|
|
|
|
<classpathDependencyExclude>ca.uhn.hapi.fhir:*</classpathDependencyExclude>
|
|
|
|
<classpathDependencyExclude>org.codehaus.woodstox:woodstox-core-asl</classpathDependencyExclude>
|
|
|
|
<classpathDependencyExclude>org.codehaus.woodstox:stax2-api</classpathDependencyExclude>
|
|
|
|
</classpathDependencyExcludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>dstu2</id>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Dstu2IT.java</include>
|
|
|
|
</includes>
|
|
|
|
<classpathDependencyExcludes>
|
|
|
|
<classpathDependencyExclude>org.codehaus.woodstox:woodstox-core-asl</classpathDependencyExclude>
|
|
|
|
<classpathDependencyExclude>org.codehaus.woodstox:stax2-api</classpathDependencyExclude>
|
|
|
|
</classpathDependencyExcludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>dstu3</id>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Dstu3IT.java</include>
|
|
|
|
</includes>
|
|
|
|
<classpathDependencyExcludes>
|
|
|
|
<classpathDependencyExclude>org.codehaus.woodstox:woodstox-core-asl</classpathDependencyExclude>
|
|
|
|
<classpathDependencyExclude>org.codehaus.woodstox:stax2-api</classpathDependencyExclude>
|
|
|
|
</classpathDependencyExcludes>
|
|
|
|
</configuration>
|
2015-02-16 14:17:29 -05:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2015-02-11 08:52:46 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2015-10-04 15:05:30 -04:00
|
|
|
<configuration>
|
|
|
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
|
|
|
<createSourcesJar>true</createSourcesJar>
|
|
|
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
|
|
<artifactSet>
|
|
|
|
<includes combine.children="append">
|
|
|
|
<include>ca.uhn.hapi.fhir:hapi-fhir-base</include>
|
2016-10-14 16:15:27 -04:00
|
|
|
<include>ca.uhn.hapi.fhir:hapi-fhir-client-okhttp</include>
|
2016-09-16 23:46:06 -04:00
|
|
|
<include>org.codehaus.woodstox:woodstox-core-asl</include>
|
|
|
|
<include>javax.xml.stream:stax-api</include>
|
|
|
|
<include>org.codehaus.woodstox:stax2-api</include>
|
2015-10-04 15:05:30 -04:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>javax.xml.stream</pattern>
|
|
|
|
<shadedPattern>ca.uhn.fhir.repackage.javax.xml.stream</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>javax.json</pattern>
|
|
|
|
<shadedPattern>ca.uhn.fhir.repackage.javax.json</shadedPattern>
|
|
|
|
</relocation>
|
2016-09-16 23:46:06 -04:00
|
|
|
<relocation>
|
|
|
|
<pattern>com.ctc.wstx.stax</pattern>
|
|
|
|
<shadedPattern>ca.uhn.fhir.repackage.com.ctc.wstx.stax</shadedPattern>
|
|
|
|
</relocation>
|
2015-10-04 15:05:30 -04:00
|
|
|
</relocations>
|
|
|
|
<filters combine.children="append">
|
|
|
|
<!-- Exclude server side stuff, except exceptions which are used clientside -->
|
|
|
|
<filter>
|
|
|
|
<artifact>ca.uhn.hapi.fhir:hapi-fhir-base</artifact>
|
|
|
|
<excludes>
|
|
|
|
<!-- Exclude test stuff which depends on httpservlet -->
|
|
|
|
<exclude>ca/uhn/fhir/util/ITestingUiClientFactory</exclude>
|
|
|
|
<!-- Exclude server side stuff. This could be made nicer if code was divided into shared, server and client -->
|
2015-10-04 20:10:05 -04:00
|
|
|
<!--exclude>ca/uhn/fhir/rest/server/Add*</exclude>
|
2015-10-04 15:05:30 -04:00
|
|
|
<exclude>ca/uhn/fhir/rest/server/Apache*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Bundle*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/ETag*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Fifo*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Hard*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/IBundle*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/IDynamic*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Incoming*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/IPaging*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/IServerAdd*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Resource*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Rest*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Search*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/Simple*</exclude>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/audit/**</exclude>
|
2015-10-04 20:10:05 -04:00
|
|
|
<exclude>ca/uhn/fhir/rest/server/interceptor/**</exclude-->
|
2015-10-04 15:05:30 -04:00
|
|
|
<!-- Exclude Phloc validator to make android libs small -->
|
|
|
|
<exclude>ca/uhn/fhir/validation/schematron/SchematronBaseValidator*</exclude>
|
|
|
|
<!-- Exclude Thymeleaf to make android libs small -->
|
|
|
|
<exclude>ca/uhn/fhir/narrative/*Thymeleaf*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters>
|
|
|
|
</configuration>
|
2015-02-11 08:52:46 -05:00
|
|
|
<executions>
|
2015-10-04 15:05:30 -04:00
|
|
|
<!-- shaded jar -->
|
2015-08-19 11:49:00 -04:00
|
|
|
<execution>
|
2015-10-04 15:05:30 -04:00
|
|
|
<id>shaded</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
2016-09-16 23:46:06 -04:00
|
|
|
</goals>
|
|
|
|
</execution>
|
2015-10-04 15:05:30 -04:00
|
|
|
<!-- dstu jar -->
|
2015-02-11 08:52:46 -05:00
|
|
|
<execution>
|
2015-08-06 10:15:58 -04:00
|
|
|
<id>dstu</id>
|
2015-10-04 15:05:30 -04:00
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
2015-02-11 08:52:46 -05:00
|
|
|
<configuration>
|
2015-08-06 10:15:58 -04:00
|
|
|
<shadedClassifierName>dstu</shadedClassifierName>
|
2015-02-11 08:52:46 -05:00
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
2015-08-06 10:15:58 -04:00
|
|
|
<include>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu</include>
|
2015-02-11 08:52:46 -05:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
2015-10-04 20:10:05 -04:00
|
|
|
<!-- Exclude server side stuff, except exceptions which are used clientside -->
|
|
|
|
<!--filters>
|
2015-10-01 18:13:19 -04:00
|
|
|
<filter>
|
|
|
|
<artifact>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu</artifact>
|
|
|
|
<excludes>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/**</exclude>
|
|
|
|
</excludes>
|
2015-02-16 12:19:08 -05:00
|
|
|
</filter>
|
2015-10-04 20:10:05 -04:00
|
|
|
</filters-->
|
2015-02-11 08:52:46 -05:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2015-10-04 15:05:30 -04:00
|
|
|
<!-- dstu2 jar -->
|
2015-08-06 10:15:58 -04:00
|
|
|
<execution>
|
|
|
|
<id>dstu2</id>
|
2015-10-04 15:05:30 -04:00
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
2015-08-06 10:15:58 -04:00
|
|
|
<configuration>
|
|
|
|
<shadedClassifierName>dstu2</shadedClassifierName>
|
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2</include>
|
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
2015-10-04 20:10:05 -04:00
|
|
|
<!-- Exclude server side stuff, except exceptions which are used clientside -->
|
|
|
|
<!--filters>
|
2015-10-01 18:13:19 -04:00
|
|
|
<filter>
|
|
|
|
<artifact>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2</artifact>
|
2016-02-03 08:35:05 -05:00
|
|
|
<excludes>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/**</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters-->
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!-- dstu3 jar -->
|
|
|
|
<execution>
|
|
|
|
<id>dstu3</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<shadedClassifierName>dstu3</shadedClassifierName>
|
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3</include>
|
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
|
|
|
<!-- Exclude server side stuff, except exceptions which are used clientside -->
|
|
|
|
<!--filters>
|
|
|
|
<filter>
|
|
|
|
<artifact>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2</artifact>
|
2015-10-01 18:13:19 -04:00
|
|
|
<excludes>
|
|
|
|
<exclude>ca/uhn/fhir/rest/server/**</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
2015-10-04 20:10:05 -04:00
|
|
|
</filters-->
|
2015-08-06 10:15:58 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2015-02-11 08:52:46 -05:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-09-16 23:46:06 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.jacoco</groupId>
|
|
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<classFolders>
|
|
|
|
<classFolder>${basedir}/target/classes</classFolder>
|
|
|
|
</classFolders>
|
|
|
|
<sourceFolders>
|
|
|
|
<sourceFolder>${basedir}/src/main/java</sourceFolder>
|
|
|
|
</sourceFolders>
|
|
|
|
<dumpOnExit>true</dumpOnExit>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>default-prepare-agent</id>
|
|
|
|
<goals>
|
|
|
|
<goal>prepare-agent</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2015-02-11 08:52:46 -05:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2015-04-20 17:32:20 -04:00
|
|
|
|
2015-03-16 10:17:49 -04:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>DIST</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<version>${maven_assembly_plugin_version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<attach>true</attach>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${project.basedir}/src/assembly/android-sources.xml</descriptor>
|
|
|
|
<descriptor>${project.basedir}/src/assembly/android-javadoc.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2015-04-20 17:32:20 -04:00
|
|
|
|
2015-02-11 08:52:46 -05:00
|
|
|
</project>
|