2020-03-22 14:14:28 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2021-05-13 13:15:35 -04:00
|
|
|
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">
|
2020-04-30 17:36:38 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2021-05-13 13:15:35 -04:00
|
|
|
<artifactId>spring-boot-ci-cd</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<name>spring-boot-ci-cd</name>
|
2022-01-10 11:35:47 -05:00
|
|
|
<packaging>jar</packaging>
|
2020-07-07 07:18:10 -04:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung.spring-boot-modules</groupId>
|
|
|
|
<artifactId>spring-boot-modules</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
|
2020-04-30 17:36:38 -04:00
|
|
|
<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>
|
2020-03-22 14:14:28 -04:00
|
|
|
|
2020-04-30 17:36:38 -04:00
|
|
|
<build>
|
2020-04-26 08:33:20 -04:00
|
|
|
<plugins>
|
2020-04-30 17:36:38 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.jacoco</groupId>
|
|
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
2023-09-03 02:18:10 -04:00
|
|
|
<version>${jacoco-maven-plugin.version}</version>
|
2020-04-30 17:36:38 -04:00
|
|
|
<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>
|
2020-04-26 08:33:20 -04:00
|
|
|
</plugins>
|
2020-04-30 17:36:38 -04:00
|
|
|
</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>
|
2023-09-03 02:18:10 -04:00
|
|
|
<version>${heroku-maven-plugin.version}</version>
|
2020-04-30 17:36:38 -04:00
|
|
|
<configuration>
|
|
|
|
<appName>spring-boot-ci-cd</appName>
|
|
|
|
<processTypes>
|
2021-05-13 13:15:35 -04:00
|
|
|
<web>java $JAVA_OPTS -jar -Dserver.port=$PORT
|
2023-05-24 10:07:51 -04:00
|
|
|
target/${project.build.finalName}.jar
|
|
|
|
</web>
|
2020-04-30 17:36:38 -04:00
|
|
|
</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>
|
2023-09-03 02:18:10 -04:00
|
|
|
<version>${jib-maven-plugin.version}</version>
|
2020-04-30 17:36:38 -04:00
|
|
|
<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>
|
2020-04-26 08:33:20 -04:00
|
|
|
|
2023-09-03 02:18:10 -04:00
|
|
|
<properties>
|
|
|
|
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
|
|
|
|
<heroku-maven-plugin.version>3.0.2</heroku-maven-plugin.version>
|
|
|
|
<jib-maven-plugin.version>2.2.0</jib-maven-plugin.version>
|
|
|
|
</properties>
|
|
|
|
|
2020-03-22 14:14:28 -04:00
|
|
|
</project>
|