forked from rtyley/agit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
306 lines (290 loc) · 14.1 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2011 Roberto Tyley
~
~ This file is part of 'Agit' - an Android Git client.
~
~ Agit is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Agit is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses />.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.26-SNAPSHOT</version>
<groupId>com.madgag</groupId>
<artifactId>agit-parent</artifactId>
<packaging>pom</packaging>
<name>Agit parent POM project</name>
<modules>
<module>agit-test-utils</module>
<module>agit</module>
<module>agit-integration-tests</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<android.version>2.3.3</android.version>
<maven.build.timestamp.format>yyMMdddHH</maven.build.timestamp.format>
<!-- Apparently necessary due to http://jira.codehaus.org/browse/MRESOURCES-99 and also more readable -->
<versionCode>${maven.build.timestamp}</versionCode>
</properties>
<licenses>
<license>
<name>GPL v3</name>
<url>http://www.gnu.org/licenses/gpl-3.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:[email protected]:rtyley/agit.git</connection>
<developerConnection>scm:git:[email protected]:rtyley/agit.git</developerConnection>
<url>[email protected]:rtyley/agit.git</url>
</scm>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
<version>${android.version}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.madgag</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>1.0.99.0.7-UNOFFICIAL-ROBERTO-RELEASE</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android-test</artifactId>
<version>${android.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>r09</version>
</dependency>
<dependency>
<groupId>com.madgag</groupId>
<artifactId>util-compress</artifactId>
<version>1.27</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3.RC2</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<!--
During release:perform, enable the "release" profile
-->
<releaseProfiles>release</releaseProfiles>
<goals>validate</goals>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>maven-android-plugin</artifactId>
<version>3.0.0-alpha-9</version>
<extensions>true</extensions>
<configuration>
<jvmArguments>
<jvmArgument>-Xmx512m</jvmArgument>
</jvmArguments>
<sdk>
<platform>10</platform>
</sdk>
<emulator>
<avd>22</avd>
</emulator>
<zipalign>
<verbose>true</verbose>
</zipalign>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<!-- we need to override the dependency of the plugin to get a newer version of proguard -->
<dependencies>
<dependency>
<groupId>net.sf.proguard</groupId>
<artifactId>proguard</artifactId>
<version>4.4</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<configuration>
<proguardVersion>4.4</proguardVersion>
<maxMemory>512m</maxMemory>
<injar>android-classes</injar>
<libs>
<lib>${rt.jar.path}</lib>
<lib>${jsse.jar.path}</lib>
</libs>
<obfuscate>false</obfuscate>
<addMavenDescriptor>false</addMavenDescriptor>
<options>
<option>-keepclassmembers
enum * { public static **[] values(); public static ** valueOf(java.lang.String);
}
</option>
<option>-keep class com.madgag.agit.**</option>
<option>-keep class com.madgag.android.blockingprompt.**</option>
<option>-keep public class * extends android.app.Activity</option>
<option>-keep public class * extends android.app.Application</option>
<option>-keep public class * extends android.app.Service</option>
<option>-keep public class * extends android.content.BroadcastReceiver</option>
<option>-keep public class * extends android.content.ContentProvider</option>
<option>-keep
public class * extends android.view.View { public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...); }
</option>
<option>-keep public class roboguice.**</option>
<option>-keep class com.google.inject.Binder</option>
<option>-keep class com.google.inject.Key</option>
<option>-keep class com.google.inject.Provider</option>
<option>-keep class com.google.inject.TypeLiteral</option>
<option>-keepclassmembers class * { @com.google.inject.Inject <init>(...); }</option>
<option>-keep class org.eclipse.jgit.lib.Repository</option>
<!-- JSch -->
<option>-keep class com.jcraft.jsch.jce.*</option>
<option>-keep class * extends com.jcraft.jsch.KeyExchange</option>
<option>-keep class com.jcraft.jsch.**</option> <!-- This is giving in - would rather rely on lines like the above -->
<option>-dontskipnonpubliclibraryclasses</option>
<!-- you really should NOT avoid warning but it can be helpful when testing options -->
<option>-ignorewarnings</option>
<option>-verbose</option>
<!-- next options are necessary to decipher stack traces with retrace later,
relies on the map file created -->
<option>-renamesourcefileattribute SourceFile</option>
<option>-keepattributes SourceFile,LineNumberTable,*Annotation*</option>
<option>-printmapping map.txt</option>
<option>-printseeds seed.txt</option>
<option>-ignorewarnings</option>
<option>-dontoptimize</option>
<!--
<option>-optimizationpasses 3</option>
The -optimizations option disables some arithmetic simplifications that Dalvik 1.0
and 1.5 can't handle.
<option>-optimizations !code/simplification/arithmetic</option>-->
<option>-keepclassmembers class com.google.inject.assistedinject.FactoryProvider2 { *; }</option>
<option>-keep public class * extends junit.framework.TestCase</option>
<option>-keepclassmembers class * {
@com.google.inject.Provides *;
@android.test.suitebuilder.annotation.* *;
void test*(...);
}</option>
<option>-keepclassmembers class * extends roboguice.application.RoboApplication { *; }</option>
<option>-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}</option>
</options>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!-- the release profile does sign, proguard, zipalign ... but does not run instrumentation tests -->
<id>release</id>
<!-- via this activation the profile is automatically used when the release is done with the maven release
plugin -->
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<modules>
<module>agit-test-utils</module>
<module>agit</module>
</modules>
</profile>
<!-- to avoid having to do symlinks to rt.jar like documented e.g. here
http://bruehlicke.blogspot.com/2009/11/missing-rtjar-mac-os-x-using-proguard.html
http://codebistro.com/2010/07/18/proguard-and-runtime-libraries-on-mac-os-x/
-->
<profile>
<id>linux</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<properties>
<rt.jar.path>${java.home}/jre/lib/rt.jar</rt.jar.path>
<jsse.jar.path>${java.home}/jre/lib/jsse.jar</jsse.jar.path>
</properties>
</profile>
<!-- mac profile has to be after unix since running on mac will trigger both -->
<profile>
<id>mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<!-- absolute path -->
<!--<rt.jar.path>/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar</rt.jar.path>-->
<!-- or with JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/ -->
<rt.jar.path>${java.home}/../Classes/classes.jar</rt.jar.path>
<jsse.jar.path>${java.home}/../Classes/jsse.jar</jsse.jar.path>
</properties>
</profile>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<rt.jar.path>${java.home}/jre/lib/rt.jar</rt.jar.path>
<jsse.jar.path>${java.home}/jre/lib/jsse.jar</jsse.jar.path>
</properties>
</profile>
</profiles>
</project>