-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathpom.xml
More file actions
97 lines (93 loc) · 3.14 KB
/
pom.xml
File metadata and controls
97 lines (93 loc) · 3.14 KB
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
<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>
<parent>
<groupId>com.google.cloud.functions.invoker</groupId>
<artifactId>java-function-invoker-parent</artifactId>
<version>2.0.1</version>
</parent>
<groupId>com.google.cloud.functions.invoker</groupId>
<artifactId>java-function-invoker-testfunction</artifactId>
<version>2.0.1</version>
<name>Example GCF Function Jar</name>
<description>
An example of a GCF function packaged into a jar. We use this in tests.
</description>
<url>https://github.com/GoogleCloudPlatform/functions-framework-java</url>
<dependencies>
<dependency>
<groupId>com.google.cloud.functions</groupId>
<artifactId>functions-framework-api</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<!-- We don't actually use this; we just check that its classes can be
loaded from the function. -->
<groupId>com.google.escapevelocity</groupId>
<artifactId>escapevelocity</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.5.0-jre</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.13.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
<phase>test-compile</phase>
</execution>
</executions>
</plugin>
<!--
We need to make sure that the jar is available to the test that uses it,
and that it includes its dependencies in its classpath. The test-jar
business above accomplishes the former, and the test-compile business
below accomplishes the latter.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>test-compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.4</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>