pom.xml 4.4 KB

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