107 lines
3.8 KiB
XML
107 lines
3.8 KiB
XML
<?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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>spring-boot-ci-cd</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
<name>spring-boot-ci-cd</name>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung.spring-boot-modules</groupId>
|
|
<artifactId>spring-boot-modules</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<relativePath>../</relativePath>
|
|
</parent>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>0.8.5</version>
|
|
<executions>
|
|
<execution>
|
|
<id>default-prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>report</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>deploy-heroku</id>
|
|
<properties>
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.heroku.sdk</groupId>
|
|
<artifactId>heroku-maven-plugin</artifactId>
|
|
<version>3.0.2</version>
|
|
<configuration>
|
|
<appName>spring-boot-ci-cd</appName>
|
|
<processTypes>
|
|
<web>java $JAVA_OPTS -jar -Dserver.port=$PORT
|
|
target/${project.build.finalName}.jar</web>
|
|
</processTypes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>deploy-docker</id>
|
|
<properties>
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.google.cloud.tools</groupId>
|
|
<artifactId>jib-maven-plugin</artifactId>
|
|
<version>2.2.0</version>
|
|
<configuration>
|
|
<to>
|
|
<image>registry.hub.docker.com/baeldungjib/baeldung-ci-cd-process</image>
|
|
<tags>
|
|
<tag>${project.version}</tag>
|
|
<tag>latest</tag>
|
|
</tags>
|
|
</to>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project> |