| <?xml version="1.0" encoding="UTF-8"?> |
| <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>org.robolectric</groupId> |
| <artifactId>robolectric-shadows</artifactId> |
| <version>3.1-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>shadows-core</artifactId> |
| |
| <dependencies> |
| <!-- Test Dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.assertj</groupId> |
| <artifactId>assertj-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Robolectric Dependencies --> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>robolectric-annotations</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>robolectric-utils</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>robolectric-resources</artifactId> |
| </dependency> |
| |
| <!-- Project Dependencies --> |
| <dependency> |
| <groupId>com.intellij</groupId> |
| <artifactId>annotations</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.ibm.icu</groupId> |
| <artifactId>icu4j</artifactId> |
| <version>53.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| |
| <!-- SQLite Dependencies --> |
| <dependency> |
| <groupId>com.almworks.sqlite4java</groupId> |
| <artifactId>sqlite4java</artifactId> |
| <version>0.282</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.axet.litedb</groupId> |
| <artifactId>libsqlite</artifactId> |
| <version>${libsqlite.version}</version> |
| <classifier>natives-windows-x86</classifier> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.axet.litedb</groupId> |
| <artifactId>libsqlite</artifactId> |
| <version>${libsqlite.version}</version> |
| <classifier>natives-windows-x86_64</classifier> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.axet.litedb</groupId> |
| <artifactId>libsqlite</artifactId> |
| <version>${libsqlite.version}</version> |
| <classifier>natives-mac-x86_64</classifier> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.axet.litedb</groupId> |
| <artifactId>libsqlite</artifactId> |
| <version>${libsqlite.version}</version> |
| <classifier>natives-linux-x86</classifier> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.axet.litedb</groupId> |
| <artifactId>libsqlite</artifactId> |
| <classifier>natives-linux-x86_64</classifier> |
| <version>${libsqlite.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>target/natives</directory> |
| </resource> |
| |
| <resource> |
| <directory>src/main/resources</directory> |
| <excludes> |
| <exclude>**/*.vm</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <generatedSourcesDirectory>target/generated-sources</generatedSourcesDirectory> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <configuration> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <jarOutputDirectory>${basedir}/dist</jarOutputDirectory> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>com.googlecode.mavennatives</groupId> |
| <artifactId>maven-nativedependencies-plugin</artifactId> |
| <version>0.0.7</version> |
| <executions> |
| <execution> |
| <id>unpacknatives</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <separateDirs>true</separateDirs> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.robolectric</groupId> |
| <artifactId>robolectric-velocity-plugin</artifactId> |
| <version>1.1.0</version> |
| <configuration> |
| <api>${api}</api> |
| <fileset> |
| <directory>${project.basedir}/src/main/resources</directory> |
| <includes> |
| <include>**/*.vm</include> |
| </includes> |
| </fileset> |
| <output>target/generated-shadows</output> |
| </configuration> |
| <executions> |
| <execution> |
| <id>generate-shadows</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>process-templates</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.9.1</version> |
| <executions> |
| <execution> |
| <id>add-source-directories</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>target/generated-shadows</source> |
| <source>target/generated-sources</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.bsc.maven</groupId> |
| <artifactId>maven-processor-plugin</artifactId> |
| <version>2.2.1</version> |
| <configuration> |
| <additionalSourceDirectories> |
| <sourceDirectory>target/generated-shadows</sourceDirectory> |
| </additionalSourceDirectories> |
| <outputDirectory>target/generated-sources</outputDirectory> |
| <compilerArguments>-source ${maven.compiler.source} -target ${maven.compiler.target} -Aorg.robolectric.annotation.processing.shadowPackage=org.robolectric</compilerArguments> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>process</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>robolectric-processor</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>android-16</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <classifier>${api}</classifier> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>4.1.2_r1-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>16</api> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>android-17</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <classifier>${api}</classifier> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>4.2.2_r1.2-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>17</api> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>android-18</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <classifier>${api}</classifier> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>4.3_r2-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>18</api> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>android-19</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <classifier>${api}</classifier> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>4.4_r1-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>19</api> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>android-21</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <classifier>${api}</classifier> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>5.0.0_r2-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>21</api> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>android-22</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <classifier>${api}</classifier> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>5.1.1_r9-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>22</api> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>android-latest</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <outputDirectory>dist</outputDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.robolectric</groupId> |
| <artifactId>android-all</artifactId> |
| <version>5.1.1_r9-robolectric-0</version> |
| </dependency> |
| </dependencies> |
| <properties> |
| <api>22</api> |
| </properties> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| </profile> |
| |
| <profile> |
| <id>dist</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>dist</directory> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>upload</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.9.1</version> |
| <executions> |
| <execution> |
| <id>add-source-directories</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>target/generated-shadows</source> |
| <source>target/generated-sources</source> |
| </sources> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>dist/shadows-core-${project.version}-16.jar</file> |
| <type>jar</type> |
| <classifier>16</classifier> |
| </artifact> |
| |
| <artifact> |
| <file>dist/shadows-core-${project.version}-17.jar</file> |
| <type>jar</type> |
| <classifier>17</classifier> |
| </artifact> |
| |
| <artifact> |
| <file>dist/shadows-core-${project.version}-18.jar</file> |
| <type>jar</type> |
| <classifier>18</classifier> |
| </artifact> |
| |
| <artifact> |
| <file>dist/shadows-core-${project.version}-19.jar</file> |
| <type>jar</type> |
| <classifier>19</classifier> |
| </artifact> |
| |
| <artifact> |
| <file>dist/shadows-core-${project.version}-21.jar</file> |
| <type>jar</type> |
| <classifier>21</classifier> |
| </artifact> |
| |
| <artifact> |
| <file>dist/shadows-core-${project.version}-22.jar</file> |
| <type>jar</type> |
| <classifier>22</classifier> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |