-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
139 lines (122 loc) · 4.17 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<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>
<groupId>com.android.skeleton</groupId>
<artifactId>skeleton-android-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Android Skeleton - Parent</name>
<!-- Minimum maven version required -->
<prerequisites>
<maven>3.0.4</maven>
</prerequisites>
<!-- Project properties -->
<properties>
<!-- Files Encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Java compiler versions -->
<java.compiler.source.version>1.6</java.compiler.source.version>
<java.compiler.target.version>1.6</java.compiler.target.version>
<!-- =========DEPENDENCIES VERSIONS======== -->
<!-- Minimum Android version supported. Android 4.0 Ice Cream Sandwich -->
<android.version>4.0.1.2</android.version>
<!-- Platform Android version -->
<android.platform.version>14</android.platform.version>
<!-- =========PLUGINS VERSIONS======== -->
<!-- Android maven plugin version -->
<android.plugin.version>3.7.0</android.plugin.version>
<compiler.plugin.version>3.1</compiler.plugin.version>
<jacoco.plugin.version>0.6.3.201306030806</jacoco.plugin.version>
<cobertura.plugin.version>2.6</cobertura.plugin.version>
<android.sdk.path>/home/deyine/apps/android-sdks</android.sdk.path>
</properties>
<!-- Project modules -->
<modules>
<!-- Main module. Built as Android application (apk) -->
<module>skeleton-app</module>
<module>skeleton-instrumentation-tests</module>
</modules>
<dependencyManagement>
<dependencies>
<!-- Android lib -->
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
<version>${android.version}</version>
</dependency>
<!-- Android lib for test -->
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android-test</artifactId>
<scope>provided</scope>
<version>${android.version}</version>
</dependency>
<!-- Coverage Tools -->
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
<version>${jacoco.plugin.version}</version>
<classifier>runtime</classifier>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- Android maven plugin declaration -->
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>${android.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<sdk>
<platform>${android.platform.version}</platform>
</sdk>
</configuration>
</plugin>
<!-- Maven compiler plugin -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.plugin.version}</version>
<configuration>
<source>${java.compiler.source.version}</source>
<target>${java.compiler.target.version}</target>
</configuration>
</plugin>
<!-- Code coverage -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>jacoco</id>
<modules>
<module>skeleton-instrumentation-tests</module>
</modules>
<properties>
<sonar.branch>jacoco</sonar.branch>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.excludes>*test*</sonar.jacoco.excludes>
<sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
<sonar.jacoco.reportPath>jacoco.exec</sonar.jacoco.reportPath>
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
</properties>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${cobertura.plugin.version}</version>
</plugin>
</plugins>
</reporting>
</profile>
</profiles>
</project>