Skip to content

Commit

Permalink
Add JIB maven plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
eberhardmayer committed Jun 18, 2021
1 parent 21401c6 commit 2cd6207
Showing 1 changed file with 44 additions and 36 deletions.
80 changes: 44 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.github.eberhardmayer</groupId>
<artifactId>jib-example</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>jib-example</name>
<description>Demo project for Spring Boot with JIB</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.1</version>
<relativePath/>
</parent>
<groupId>com.github.eberhardmayer</groupId>
<artifactId>jib-example</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>jib-example</name>
<description>Demo project for Spring Boot with JIB</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<to>
<image>eberhardmayer/jib-example:test2</image>
<auth>
<username>eberhardmayer</username>
<password>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</password>
</auth>
</to>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 2cd6207

Please sign in to comment.