-
-
Save TheSnoozer/ddce23f6ee86443ccc397389e94351f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
<groupId>de.philipphauer.blog</groupId> | |
<artifactId>versioning-continuous-delivery</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>1.3.5.RELEASE</version> | |
</parent> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>1.8</java.version> | |
<!-- IntelliJ grouses the following dynamic properties. Workaround: Settings > Build, Execution, Development > Build Tools > Maven > Runner > Properties. Add git.commit.time and git.commit.id.abbrev with empty value. --> | |
<version.number>${git.commit.time}.${git.commit.id.abbrev}</version.number> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>${artifactId}-${version.number}</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>pl.project13.maven</groupId> | |
<artifactId>git-commit-id-plugin</artifactId> | |
<version>2.2.1</version> | |
<executions> | |
<execution> | |
<phase>validate</phase> | |
<goals> | |
<goal>revision</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<dateFormat>yyyyMMdd-HHmmss</dateFormat><!-- human-readable part of the version id --> | |
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory> | |
<generateGitPropertiesFile>false</generateGitPropertiesFile><!-- somehow necessary. otherwise the variables are not available in the pom --> | |
<injectAllReactorProjects>true</injectAllReactorProjects> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>2.4</version> | |
<executions> | |
<execution> | |
<id>default-install</id> | |
<phase>install</phase> | |
<goals> | |
<goal>install</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>2.4</version> | |
<executions> | |
<execution> | |
<id>default-install</id> | |
<phase>install</phase> | |
<goals> | |
<goal>install-file</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<file>${project.basedir}/target/${artifactId}-${version.number}.${project.packaging}</file> | |
<groupId>de.philipphauer.blog</groupId> | |
<artifactId>versioning-continuous-delivery</artifactId> | |
<version>${artifactId}-${version.number}</version> | |
<packaging>jar</packaging> | |
</configuration> | |
</plugin> | |
</plugins> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment