Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
54 lines (49 loc) · 1.42 KB
/
Copy pathpom.xml
File metadata and controls
54 lines (49 loc) · 1.42 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
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>example</groupId>
<artifactId>helloworld</artifactId>
<version>1</version>
<properties>
<jib-maven-plugin.version>0.1.2</jib-maven-plugin.version>
<mainClass>example.HelloWorld</mainClass>
</properties>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.6-jre</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<!-- Jib -->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<credentialHelperName>gcr</credentialHelperName>
<registry>gcr.io</registry>
<repository>REPLACE-WITH-YOUR-GCP-PROJECT/image-built-with-jib</repository>
<mainClass>${mainClass}</mainClass>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>