-
Notifications
You must be signed in to change notification settings - Fork 8
/
pom.xml
410 lines (355 loc) · 17.5 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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<?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">
<prerequisites>
<!-- shows error without this, and warning with this -->
<maven>3.9.1</maven>
</prerequisites>
<!-- see: -->
<!-- https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/appengine-java8/endpoints-v2-backend/pom.xml -->
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>
<!-- see: https://enterprise.google.com/supportcenter/managecases#Case/0016000001H3c9i/U-13985468 -->
<!--<version>v-1-0</version>-->
<version>v-3-1</version>
<groupId>net.cryptonomica</groupId>
<artifactId>cryptonomica</artifactId>
<properties>
<!-- endpoints.project.id START -->
<endpoints.project.id>sandbox-cryptonomica</endpoints.project.id>
<!-- endpoints.project.id END -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- <endpoints.framework.version>2.0.9</endpoints.framework.version>-->
<endpoints.framework.version>2.2.2</endpoints.framework.version>
<!-- <endpoints.management.version>1.0.4</endpoints.management.version>-->
<endpoints.management.version>1.0.14</endpoints.management.version>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- <appengine.maven.plugin.version>1.3.2</appengine.maven.plugin.version>-->
<appengine.maven.plugin.version>2.4.1</appengine.maven.plugin.version>
</properties>
<!-- Compile/runtime dependencies -->
<dependencies>
<!-- for cloud endpoints v. 2 START -->
<!-- see: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migrating -->
<!-- https://mvnrepository.com/artifact/com.google.endpoints/endpoints-framework-tools -->
<dependency>
<groupId>com.google.endpoints</groupId>
<artifactId>endpoints-framework</artifactId>
<version>${endpoints.framework.version}</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/com.google.endpoints/endpoints-management-control-appengine-all-->
<groupId>com.google.endpoints</groupId>
<artifactId>endpoints-management-control-appengine-all</artifactId>
<version>1.0.7</version>
<!--<version>1.0.11</version>-->
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.google.appengine</groupId>-->
<!-- <artifactId>appengine-api-1.0-sdk</artifactId>-->
<!-- <!–<version>1.9.64</version>–>-->
<!-- <version>1.9.71</version>-->
<!-- </dependency>-->
<dependency>
<!-- https://mvnrepository.com/artifact/com.google.appengine/appengine-api-1.0-sdk -->
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.9.84</version>
</dependency>
<dependency>
<!--
App Engine Java 8 Runtime Environment
supports the Java Servlet 3.1 and Java Servlet 2.5 specifications
https://cloud.google.com/appengine/docs/standard/java/runtime-java8
https://javaee.github.io/servlet-spec/downloads/servlet-3.1/Final/servlet-3_1-final.pdf
see dependency in:
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/appengine-java8/endpoints-v2-backend/pom.xml
-->
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<!-- for cloud endpoints v. 2 END -->
<dependency>
<!-- https://mvnrepository.com/artifact/com.google.appengine/gcloud-maven-plugin -->
<groupId>com.google.appengine</groupId>
<artifactId>gcloud-maven-plugin</artifactId>
<version>2.0.9.133.v201611104</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/com.google.appengine.tools/appengine-gcs-client -->
<!-- needed for import com.google.appengine.tools.cloudstorage.* -->
<groupId>com.google.appengine.tools</groupId>
<artifactId>appengine-gcs-client</artifactId>
<version>0.7</version>
</dependency>
<dependency>
<groupId>com.twilio.sdk</groupId>
<artifactId>twilio-java-sdk</artifactId>
<version>6.3.0</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/com.googlecode.libphonenumber/libphonenumber -->
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>8.3.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/servlets.com/cos -->
<!-- The O'Reilly Servlet Package (com.oreilly.servlet) by Jason Hunter to accompany his book,
Java Servlet Programming, including the famous MultipartRequest and MultipartParser classes. -->
<!-- http://servlets.com/cos/javadoc/ -->
<dependency>
<groupId>servlets.com</groupId>
<artifactId>cos</artifactId>
<version>05Nov2002</version>
</dependency>
<!-- newer version of servlets.com removed because of -->
<!--INFO] GCLOUD: Oct 18, 2017 1:14:56 AM com.google.appengine.tools.admin.Application findApiVersion-->
<!--[INFO] GCLOUD: WARNING: Could not identify API version in /home/viktor/Dropbox/GIT/CRYPTONOMICA/cryptonomica/target/appengine-staging/WEB-INF/lib/cos.jar-->
<!--[INFO] GCLOUD: java.util.zip.ZipException: error in opening zip file-->
<!-- !!!! added to WEB-INF/lib from cos-26Dec2008.zip -->
<!--<dependency>-->
<!--<groupId>servlets.com</groupId>-->
<!--<artifactId>cos</artifactId>-->
<!--<version>26Dec2008</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/cos.jar</systemPath>-->
<!---->
<!--</dependency>-->
<!-- Stripe -->
<!-- https://github.com/stripe/stripe-java -->
<!-- https://stripe.com/docs/api/java -->
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>4.6.0</version>
</dependency>
<!-- for stripe on the frontend see: https://stripe.com/docs/stripe.js -->
<!-- -->
<dependency>
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<version>2.2.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<!-- needed for sendgrid -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<!--<version>4.5.3</version>-->
<version>4.5.13</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore -->
<dependency>
<!-- needed for sendgrid -->
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<!--<version>4.4.6</version>-->
<version>4.4.11</version>
</dependency>
<!-- -->
<dependency>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<!--<version>2.8.1</version>-->
<!--<version>2.8.2</version>-->
<version>2.8.9</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
<!-- <version>19.0</version>-->
</dependency>
<!-- Apache Commons-->
<dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<!--<version>3.6</version>-->
<!--<version>3.7</version>-->
<version>3.8.1</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
<!-- for example: org.apache.commons.text.WordUtils.capitalize() -->
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<!--<version>1.1</version>-->
<version>1.10.0</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
<!-- The Apache Commons Codec package contains simple encoder and decoders for various formats such as Base64
and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a
collection of phonetic encoding utilities. -->
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<!--<version>1.10</version>-->
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpg-jdk15on</artifactId>
<version>1.60</version>
</dependency>
<dependency>
<groupId>com.googlecode.objectify</groupId>
<artifactId>objectify</artifactId>
<version>5.1.17</version>
<!--<version>5.1.22</version>-->
</dependency>
<dependency>
<groupId>net.sf.uadetector</groupId>
<artifactId>uadetector-resources</artifactId>
<version>2014.10</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/org.json/json -->
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<!--<version>20171018</version>-->
<version>20180813</version>
</dependency>
<dependency>
<!-- Java API for Telegram Bots and Gaming Platform -->
<!-- https://github.com/pengrad/java-telegram-bot-api -->
<!--https://mvnrepository.com/artifact/com.github.pengrad/java-telegram-bot-api -->
<groupId>com.github.pengrad</groupId>
<artifactId>java-telegram-bot-api</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<!-- https://mvnrepository.com/artifact/org.web3j/infura -->
<groupId>org.web3j</groupId>
<artifactId>infura</artifactId>
<version>3.5.0</version>
</dependency>
<!-- Test Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>2.0.2-beta</version>
<scope>test</scope>
</dependency>
<!-- >>> 15-04-2021 -->
<!-- to prevent 'package javax.xml.bind does not exist' errors -->
<!-- https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
<build>
<!-- for hot reload of the web application-->
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<!-- Endpoints Frameworks v. 2 plugins START -->
<!-- see: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migrating
<see also: https://cloud.google.com/appengine/docs/standard/java/using-maven#adding_the_maven_plugin_to_an_existing_project_optional
maven: https://mvnrepository.com/artifact/com.google.cloud.tools/appengine-maven-plugin
-->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<!-- <version>2.4.1</version>-->
<version>2.4.0</version>
<!-- <version>1.3.2</version>-->
<configuration>
<!-- deploy configuration -->
<!-- see: https://cloud.google.com/appengine/docs/standard/java/tools/migrate-maven -->
<!-- <projectId>your-project-ID-goes-here</projectId>-->
<projectId>${endpoints.project.id}</projectId>
<version>${project.version}</version>
<!--
We detected that you have a large number of .class files in WEB-INF/classes.
You may be able to reduce request latency by packaging your .class files into jars.
To do this, supply <enable-jar-classes>true</enable-jar-classes> in the <staging> tag in
appengine-web.xml or one of the following methods:
You can supply the - -enable_jar_classes flag when using appcfg on command line.
If you're using the Cloud SDK based app-maven-plugin,
add <stage.enableJarClasses>true</stage.enableJarClasses> in the plugin's <configuration> tag.
If you are using the AppCfg based appengine-maven-plugin, supply <enableJarClasses>true</enableJarClasses>
in the plugin's <configuration> tag. Note that this flag will put the jar in WEB-INF/lib rather than WEB-INF/classes.
The classloader first looks in WEB-INF/classes and then WEB-INF/lib when loading a class.
As a result, this flag could change classloading order, which may affect the behavior of your app
-->
<stage.enableJarClasses>true</stage.enableJarClasses>
</configuration>
</plugin>
<plugin>
<!-- https://cloud.google.com/endpoints/docs/frameworks/java/maven-endpoints-frameworks-plugin-->
<groupId>com.google.cloud.tools</groupId>
<artifactId>endpoints-framework-maven-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<!-- plugin configuration -->
<hostname>${endpoints.project.id}.appspot.com</hostname>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<!--<version>3.2.0</version>-->
<!--<version>3.2.2</version>-->
<!--<version>3.2.3</version>-->
<version>3.3.2</version>
<configuration>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<filtering>true</filtering>
<targetPath>WEB-INF</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
<!-- 2021-01-27 Disabled TODO: check if it works without this plugin -->
<!-- <plugin>-->
<!-- <groupId>org.codehaus.mojo</groupId>-->
<!-- <artifactId>versions-maven-plugin</artifactId>-->
<!-- <!–<version>2.3</version>–>-->
<!-- <version>2.7</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <phase>compile</phase>-->
<!-- <goals>-->
<!-- <goal>display-dependency-updates</goal>-->
<!-- <goal>display-plugin-updates</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- Endpoints Frameworks v. 2 plugins END -->
</plugins>
</build>
</project>