git info over actuator

<!-- generates a resources/git.properties file that exposes git properties over /actuator/info endpoint --><plugin>    <groupId>pl.project13.maven</groupId>    <artifactId>git-commit-id-plugin</artifactId>    <version>2.2.5</version>    <executions>        <execution>            <goals>                <goal>revision</goal>            </goals>            <phase>initialize</phase>        </execution>    </executions>    <configuration>        <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>        <generateGitPropertiesFile>true</generateGitPropertiesFile>        <generateGitPropertiesFilename>${project.basedir}/src/main/resources/git.properties</generateGitPropertiesFilename>
        <prefix>git</prefix>        <format>properties</format>
        <failOnUnableToExtractRepoInfo>true</failOnUnableToExtractRepoInfo>        <failOnNoGitDirectory>true</failOnNoGitDirectory>        <injectAllReactorProjects>true</injectAllReactorProjects>    </configuration></plugin>

Comments

Popular posts from this blog

Thinking about tech: Technological Determinism

Deep fakes, fake news, it's old news!

Software development as a growing profession - Present