Spring / Spring Boot
How to generate Build Information in your Spring boot application?
Both the Maven plugin and the Gradle plugin allow generating build information containing the coordinates, name, and version of the project.
build-info goal, as shown in the following example:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.3.0.BUILD-SNAPSHOT</version> <executions> <execution> <goals> <goal>build-info</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
Gradle
springBoot { buildInfo() }
More Related questions...