pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.owncloud.android</groupId>
  7. <artifactId>owncloud</artifactId>
  8. <version>${owncloud.version}</version>
  9. <packaging>apk</packaging>
  10. <name>Owncloud Android</name>
  11. <properties>
  12. <owncloud.version>1.5.1-SNAPSHOT</owncloud.version>
  13. <java-version>1.6</java-version>
  14. <!-- Given by maven-android-sdk-deployer -->
  15. <google.android-version>4.4.2_r4</google.android-version>
  16. <!-- Usually the latest Android API -->
  17. <google.android-api>19</google.android-api>
  18. <actionbarsherlock-version>4.2.0</actionbarsherlock-version>
  19. </properties>
  20. <url>https://github.com/owncloud/android</url>
  21. <description>Owncloud for Android</description>
  22. <scm>
  23. <connection>scm:git:git@github.com:owncloud/android.git</connection>
  24. <developerConnection>scm:git:git@github.com:owncloud/android.git</developerConnection>
  25. <url>https://github.com/owncloud/android</url>
  26. </scm>
  27. <!--<repositories>-->
  28. <!--<repository>-->
  29. <!--<id>android-support</id>-->
  30. <!--<url>file://${env.ANDROID_HOME}/extras/android/m2repository</url>-->
  31. <!--</repository>-->
  32. <!--</repositories>-->
  33. <dependencies>
  34. <!-- Dirty trick, but it works. TouchImageView library is not available as Maven project. -->
  35. <dependency>
  36. <groupId>touch-image-view.jar</groupId>
  37. <artifactId>touch-image-view.jar</artifactId>
  38. <version>1.0</version>
  39. <scope>system</scope>
  40. <systemPath>${basedir}/libs/touch-image-view.jar</systemPath>
  41. </dependency>
  42. <!-- This causes a (version?) conflict during packaging since sherlockactionbar also includes compatibility-v4 -->
  43. <!--<dependency>
  44. <groupId>android.support</groupId>
  45. <artifactId>compatibility-v4</artifactId>
  46. <version>19.1.0</version>
  47. </dependency>-->
  48. <!-- Instead we need to include the exact same version -->
  49. <dependency>
  50. <groupId>com.jakewharton</groupId>
  51. <artifactId>disklrucache</artifactId>
  52. <version>2.0.2</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>android-support-v4.jar</groupId>
  56. <artifactId>android-support-v4.jar</artifactId>
  57. <version>1.0</version>
  58. <scope>system</scope>
  59. <systemPath>${basedir}/third_party/android-support-library/android-support-v4.jar</systemPath>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.actionbarsherlock</groupId>
  63. <artifactId>library</artifactId>
  64. <version>${actionbarsherlock-version}</version>
  65. <type>apklib</type>
  66. </dependency>
  67. <dependency>
  68. <groupId>android</groupId>
  69. <artifactId>android</artifactId>
  70. <version>${google.android-version}</version>
  71. <scope>provided</scope>
  72. </dependency>
  73. <!--<dependency>-->
  74. <!--<groupId>android.support</groupId>-->
  75. <!--<artifactId>compatibility-v4</artifactId>-->
  76. <!--<version>19.1.0</version>-->
  77. <!--</dependency>-->
  78. <!-- MUST BE INSTALLED FIRST: cd owncloud-android-library; mvn install -->
  79. <dependency>
  80. <groupId>com.owncloud.android</groupId>
  81. <artifactId>owncloud-android-library</artifactId>
  82. <version>${owncloud.version}</version>
  83. </dependency>
  84. </dependencies>
  85. <build>
  86. <finalName>${project.artifactId}</finalName>
  87. <sourceDirectory>src</sourceDirectory>
  88. <plugins>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-compiler-plugin</artifactId>
  92. <version>3.1</version>
  93. <configuration>
  94. <source>${java-version}</source>
  95. <target>${java-version}</target>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  100. <artifactId>android-maven-plugin</artifactId>
  101. <version>3.8.2</version>
  102. <configuration>
  103. <sdk>
  104. <path>${env.ANDROID_HOME}</path>
  105. <platform>${google.android-api}</platform>
  106. </sdk>
  107. </configuration>
  108. <extensions>true</extensions>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. </project>