Polish "Allow build info properties to be excluded"
Update the Maven plugin to use an alternative syntax to exclude the info properties and apply some minor polishing. See gh-27412
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.boot.maven.it</groupId>
|
||||
<artifactId>build-info-disable-build-properties</artifactId>
|
||||
<artifactId>build-info-exclude-build-properties</artifactId>
|
||||
<version>0.0.1.BUILD-SNAPSHOT</version>
|
||||
<name>Generate build info with disabled build properties</name>
|
||||
<name>Generate build info with excluded build properties</name>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>@java.version@</maven.compiler.source>
|
||||
@@ -20,10 +20,12 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<configuration>
|
||||
<group>off</group>
|
||||
<artifact>off</artifact>
|
||||
<version>off</version>
|
||||
<name>off</name>
|
||||
<excludeInfoProperties>
|
||||
<excludeInfoProperty>group</excludeInfoProperty>
|
||||
<excludeInfoProperty>artifact</excludeInfoProperty>
|
||||
<excludeInfoProperty>version</excludeInfoProperty>
|
||||
<excludeInfoProperty>name</excludeInfoProperty>
|
||||
</excludeInfoProperties>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>build-info</goal>
|
||||
@@ -1,11 +1,11 @@
|
||||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.boot.maven.it</groupId>
|
||||
<artifactId>build-info-custom-build-properties</artifactId>
|
||||
<artifactId>build-info-exclude-build-time</artifactId>
|
||||
<version>0.0.1.BUILD-SNAPSHOT</version>
|
||||
<name>Generate build info with custom build properties</name>
|
||||
<name>Generate build info with excluded build time</name>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>@java.version@</maven.compiler.source>
|
||||
@@ -20,10 +20,9 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<configuration>
|
||||
<group>test-group</group>
|
||||
<artifact>test-artifact</artifact>
|
||||
<version>test-version</version>
|
||||
<name>test-name</name>
|
||||
<excludeInfoProperties>
|
||||
<excludeInfoProperty>time</excludeInfoProperty>
|
||||
</excludeInfoProperties>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>build-info</goal>
|
||||
@@ -33,4 +32,17 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>@spring-framework.version@</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.servlet</groupId>
|
||||
<artifactId>jakarta.servlet-api</artifactId>
|
||||
<version>@jakarta-servlet.version@</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
Reference in New Issue
Block a user